|
Starting with glibc 2.3.6-1, locales will no longer be included as a pre-generated locale archive. This means that on a default glibc installation, the only locale available is the "C" locale.
从glibc 2.3.6-1开始,locales就不再以一个预先生成的locale包的形式存在了。这就是说,默认的glibc安装将只包含"C"。
Instead of shipping a 50MB locale archive, glibc switches to locale-gen, a script that generates locales found in /etc/locale.def.
glibc开始转而使用locale-gen,一个按照/etc/locale.gen生成locales的脚本。而不再是一个50M的locale包。
After upgrading to glibc 2.3.6-1, users should enter wanted locales in /etc/locale.def and run the locale-gen script afterwards.
升级到glibc2.3.6-1以后,用户应该在/etc/locale.gen中输入想要的locale,然后运行locale-gen脚本。
By default /etc/locale.def is an empty file with commented documentation. Once edited, the file won't get touched again and locale-gen runs on every glibc upgrade, installing all the locales specified in /etc/locale.def.
默认情况下/etc/locale.gen是一个包含注释的空文件。一旦编辑以后,它将不再被做任何修改,每次glibc升级时都会执行locale-gen来安装所有/etc/locale.gen中指定的locale。
The /etc/locale.def is not completely clear about which locale to specify. If you use a locale like en_US.UTF8, you should put it in locale.def as following:
en_US.UTF8 UTF8
locale-gen will strip the .UTF8 part when assembling the locale data, but will put it in the archive as en_US.UTF8.
/etc/locale.gen并不知道你到底想要指定什么locale。如果你使用en_US.UTF-8的locale,你应该在locale.gen中加入下面的一行:
en_US.UTF-8 UTF-8
当生成locale数据的时候,locale-gen会截取.UTF-8这个部分,但会将它以en_US.UTF-8放入locale包中。
----
arch首页上的新闻竟然有typo…………修改了。 |
|