On 02/04/2010 06:50 AM, Xi Shen wrote:
On Thu, Feb 4, 2010 at 12:07 PM, Xi Shen<[email protected]> wrote:
hi,
my system is gentoo amd64. my /etc/env.d/01locale is empty. after i
compiled mplayer, the output info is chinese, and i cannot read it
console, even though i can read it in the xterm. how to make the
output to english?
in my /etc/locale.gen file, i do have chinese support.
and, my mplayer does not have man page. i tried to add the 'doc' use
flag, but it does not have affect.
ok, i figured it out myself. i double checked my environment, and
found that the LC_CTYPE was set the "en_US.UTF8". but i do not
understand why it compiles my 'mplayer' to display chinese. after i
changed the LC_CTYPE value to "en_US" and recompile 'mplayer', the
output info becomes english, and the man page is back.
On Gentoo, the languages a program supports is controlled by the list of
languages specified in the LINGUAS variable in /etc/make.conf. This is
because most software can support more than one language. If your
LINGUAS includes Chinese, mplayer will be compiled with support for Chinese.
The language used when the program is running is controlled by the
LC_ALL and LANG environment variables. This is usually set in
/etc/env.d/02locale. If you can't see Chinese in your console but can
in an xterm, that means your console is using a font that does not
support the encoding of LC_ALL or does not have Chinese characters in
it. You will need to load a console font with Chinese support. The
console font is usually specified in /etc/conf.d/consolefont.