LC_CTYPE推荐设置为en_US.UTF-8

秀秀桌面并和大家分享一下自己的经验。

版主: lionux天地乾坤

回复
头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

LC_CTYPE推荐设置为en_US.UTF-8

帖子 lionux » 2011-01-06 8:45

用cwm发现桌面进入先停顿几秒才正常,经测试受LC_CTYPE=zh_CN.UTF-8影响,其他桌面不知是否会这样。
现改为LC_CTYPE=en_US.UTF-8,4.8以后支持utf8,xterm显示中文正常,还可以设置LC_MESSAGES=zh_CN.UTF-8应用程序提示信息语言设为中文。

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

帖子 leo » 2011-01-06 11:52

lionux 写了:用cwm发现桌面进入先停顿几秒才正常,经测试受LC_CTYPE=zh_CN.UTF-8影响,其他桌面不知是否会这样。
现改为LC_CTYPE=en_US.UTF-8,4.8以后支持utf8,xterm显示中文正常,还可以设置LC_MESSAGES=zh_CN.UTF-8应用程序提示信息语言设为中文。
我在NetBSD的当前版下也有此现象。

头像
unreal
银 Ag
帖子: 1083
注册时间: 2010-06-07 18:52

回复: LC_CTYPE推荐设置为en_US.UTF-8

帖子 unreal » 2011-05-27 23:27

原来如此阿!难怪我单独设置 LC_CTYPE 或 LANG,FVWM启动都会停顿数秒。现已按照 lionux超版 的方法设置了:)

碧落星河
铁 Fe
帖子: 61
注册时间: 2011-08-03 18:39

回复: LC_CTYPE推荐设置为en_US.UTF-8

帖子 碧落星河 » 2011-08-19 15:28

但我的不管是4。9还是snapshots版,LC_CTYPE如果设成en_US.UTF-8的话调不出scim输入法。

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: LC_CTYPE推荐设置为en_US.UTF-8

帖子 leo » 2011-08-25 20:26

我现在是amd64 5.0的current,(8/25/11)下,不用设置LC_CTYPE, 直接CTRL+space后输入法就出来了。而且进入系统进入xfce4的速度快了很多,firefox6的启动速度也很快,连wqy都没有安装,系统的默认中文字体已经调整的很好了。

碧落星河
铁 Fe
帖子: 61
注册时间: 2011-08-03 18:39

回复: LC_CTYPE推荐设置为en_US.UTF-8

帖子 碧落星河 » 2011-08-26 19:43

刚又试了一遍,不设LC_CTYPE,只设LC_MESSAGES=zh_CN.UTF-8,还是无法调出输入法,且本是中文界面的程序则显示为方框

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: LC_CTYPE推荐设置为en_US.UTF-8

帖子 leo » 2011-08-26 19:49

碧落星河 写了:刚又试了一遍,不设LC_CTYPE,只设LC_MESSAGES=zh_CN.UTF-8,还是无法调出输入法,且本是中文界面的程序则显示为方框
贴 ~/.xinitrc 和 pkg_info

碧落星河
铁 Fe
帖子: 61
注册时间: 2011-08-03 18:39

回复: LC_CTYPE推荐设置为en_US.UTF-8

帖子 碧落星河 » 2011-08-26 20:42

~/.xinitrc

exec fvwm -f /home/sun/.fvwm/fvwmrc
#exec cwm

export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim

pkg_info -t

$ pkg_info -t
feh-1.14.2p0 lightweight image viewer
firefox-5.0p3 Mozilla web browser
mplayer-20110309p9 movie player supporting many formats
mupdf-0.8.165 graphic library, pdf parser, viewer and utilities
p7zip-9.20.1 file archiver with high compression ratio
rclock-2.7.10p1 analog clock for X11 w/appoint. reminder and mail notif
scim-tables-0.5.8p3 input method data tables for scim
xfe-1.32.2p0 MS-Explorer like file manager for X
zh-wqy-zenhei-ttf-0.6.26.0p0 Wen Quan Yi Zen Hei outline font

pkg_info

$ pkg_info
atk-2.0.1 accessibility toolkit used by gtk+
bzip2-1.0.6 block-sorting file compressor, unencumbered
cairo-1.10.2p1 vector graphics library
cdparanoia-3.a9.8p0 CDDA reading utility with extra data verification features
curl-7.21.7 get files from FTP, Gopher, HTTP or HTTPS servers
desktop-file-utils-0.18p0 utilities for dot.desktop entries
enca-1.13 detect character set and encoding of text files
feh-1.14.2p0 lightweight image viewer
ffmpeg-20110408p4 audio/video converter and streamer
firefox-5.0p3 Mozilla web browser
fox-1.6.37 C++ toolkit for GUI
fribidi-0.10.4p0 library implementing the Unicode Bidirectional Algorithm
gdk-pixbuf-2.23.5 graphic library for GTK+2
gettext-0.18.1p0 GNU gettext
giblib-1.2.4p4 utility library including a imlib2 wrapper
glib2-2.28.8p1 general-purpose utility library
gsm-1.0.13p0 u-law to gsm encoding audio converter and library
gtk+2-2.24.5p0 multi-platform graphical toolkit
hicolor-icon-theme-0.12p1 fallback theme of the icon theme specification
imlib2-1.4.2p1 image manipulation library
jasper-1.900.1p1 reference implementation of JPEG-2000
jbig2dec-0.11 decoder for JBIG2 monochrome hi-res image compression format
jpeg-8c IJG's JPEG compression utilities
lame-3.98.4 lame ain't an MP3 encoder
lcms-1.18a color management library
libass-0.9.12 portable ASS/SSA subtitle renderer
libdv-1.0.0 Quasar DV codec
libgamin-0.1.10p4 file and directory monitoring system
libiconv-1.13p2 character set conversion library
libid3tag-0.15.1bp3 library for reading ID3 tags
libidn-1.22 internationalized string handling
libmng-1.0.10 Multiple-image Network Graphics (MNG) reference library
libogg-1.2.2 Ogg bitstream library
libtheora-1.1.1p0 open video codec
libungif-4.1.4p1 tools and library routines for working with GIF images
libvorbis-1.3.2 audio compression codec library
libvpx-0.9.6 Google VP8 video codec
libxml-2.7.8p2 XML parsing library
mplayer-20110309p9 movie player supporting many formats
mupdf-0.8.165 graphic library, pdf parser, viewer and utilities
nspr-4.8.7 Netscape Portable Runtime
nss-3.12.9 libraries to support development of security-enabled apps
openjpeg-1.3 open-source JPEG 2000 codec library
orc-0.4.11p1 library and toolset to operate arrays of data
p7zip-9.20.1 file archiver with high compression ratio
pango-1.28.4p2 library for layout and rendering of text
pcre-8.12p0 perl-compatible regular expression library
png-1.5.4 library for manipulating PNG images
popt-1.7p1 getopt(3)-like library with a number of enhancements
rclock-2.7.10p1 analog clock for X11 w/appoint. reminder and mail notif
recode-3.6p6 convert files between character sets and usages
schroedinger-1.0.10 high-speed Dirac codec
scim-1.4.9p9 smart common input method platform
scim-tables-0.5.8p3 input method data tables for scim
sdl-1.2.13p15 cross-platform multimedia library
shared-mime-info-0.90 shared mime database for desktops
speex-1.2rc1p0 patent-free speech codec
sqlite3-3.7.5 embedded SQL implementation
tiff-3.9.5 tools and library routines for working with TIFF images
x264-20110225p1 free H264/AVC encoder
xfe-1.32.2p0 MS-Explorer like file manager for X
zh-wqy-zenhei-ttf-0.6.26.0p0 Wen Quan Yi Zen Hei outline font

头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

回复: LC_CTYPE推荐设置为en_US.UTF-8

帖子 leo » 2011-08-28 9:22

请问您安装输入法了吗?我只用拼音,所以我的packages如下:

代码: 全选

# pkg_info
....
scim-1.4.9p9        smart common input method platform
scim-pinyin-0.5.91p3 scim input method module for pinyin
...

代码: 全选

export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim
startxfce4

碧落星河
铁 Fe
帖子: 61
注册时间: 2011-08-03 18:39

回复: LC_CTYPE推荐设置为en_US.UTF-8

帖子 碧落星河 » 2011-09-01 18:18

我用的是五笔,装的是下面两个
scim-1.4.9p9 smart common input method platform
scim-tables-0.5.8p3 input method data tables for scim

xfce4在OpenBsd上用着怎样,没在这上面用过,另外怎么装。


头像
lionux
锌 Zn
帖子: 457
注册时间: 2010-02-04 11:09

回复: LC_CTYPE推荐设置为en_US.UTF-8

帖子 lionux » 2011-09-06 10:12

exec fvwm -f /home/sun/.fvwm/fvwmrc 这行放到~/.xinitrc文件最后。

碧落星河
铁 Fe
帖子: 61
注册时间: 2011-08-03 18:39

回复: LC_CTYPE推荐设置为en_US.UTF-8

帖子 碧落星河 » 2011-09-06 21:50

lionux 写了:exec fvwm -f /home/sun/.fvwm/fvwmrc 这行放到~/.xinitrc文件最后。
正解,按这样做搞定,可以不用设LC_TYPE而使用SCIM

碧落星河
铁 Fe
帖子: 61
注册时间: 2011-08-03 18:39

回复: LC_CTYPE推荐设置为en_US.UTF-8

帖子 碧落星河 » 2011-09-07 22:34

不过还是要将LC_CTYPE设成en_US.UTF-8的,如果不设的话xterm没法显示中文。

none
铁 Fe
帖子: 67
注册时间: 2012-02-29 11:41

回复: LC_CTYPE推荐设置为en_US.UTF-8

帖子 none » 2012-03-26 3:03

Xfce4在OpenBSD上效果很不错,感官上比KDE和GNOME好看

头像
sw2wolf
钛 Ti
帖子: 27
注册时间: 2012-03-20 13:37

回复: LC_CTYPE推荐设置为en_US.UTF-8

帖子 sw2wolf » 2012-03-26 8:48

碧落星河 写了:我用的是五笔,装的是下面两个
scim-1.4.9p9 smart common input method platform
scim-tables-0.5.8p3 input method data tables for scim
xfce4在OpenBsd上用着怎样,没在这上面用过,另外怎么装。
你的五笔是怎么装的啊?
scim-fcitx不能用,我只好用scim-pinying :(
e^(π.i) + 1 = 0

碧落星河
铁 Fe
帖子: 61
注册时间: 2011-08-03 18:39

回复: LC_CTYPE推荐设置为en_US.UTF-8

帖子 碧落星河 » 2012-03-27 18:45

我装完scim-1.4.9p9和scim-tables-0.5.8p3这两个包就可以用五笔了
当然现在新版本这两个版本号也许发生了变化。

回复

在线用户

正浏览此版面之用户: 没有注册用户 和 2 访客