按音序排序的utf8和gb18030 locale

https://gro.clinux.org/frs/download.php/1962/locale-pinyin-0.1.tar.gz
下载后,解压缩
cd locale-pinyin-0.1
make
sudo cp zh_CN.hacked /usr/share/i18n/locales/zh_CN
sudo cp iso14651_t1.pinyin /usr/share/i18n/locales/
locale-gen

修改/etc/env.d/xxi18n,如果LANG不是zh_CN.utf8,一定要单独设定LC_COLLATE
 $ cat /etc/env.d/100i18n
LANGUAGE=en_US
LC_CTYPE=zh_CN.utf8
LC_COLLATE=zh_CN.utf8
LANG=en_US.utf8

Comments

Popular posts from this blog

The diff between the original SEC complaint against Ripple and the amended one

Send $SGB (Songbird) to another wallet using a script

Rippled thread cpu usage