By default, the RedHat9.0 console (also called the character interface or console) displays garbled characters. For example, if you input commands such as mc or chmod, the output is always garbled because it attempts to display Chinese characters, however, zhcon is not installed, and the result is as follows. There are two ways to solve this problem. The first is to directly install zhcon, and the second is ~ /. Add exportLANG = en_US to bashrc. These two methods have disadvantages. Zhcon is a plug-in that cannot run with the system startup and displays Chinese fonts.
By default, the RedHat 9.0 console (also called the character interface and console) displays garbled characters. For example, if you input commands such as mc or chmod, the output is always garbled because it attempts to display Chinese characters, however, zhcon is not installed, and the result is as follows.
There are two ways to solve this problem. The first is to directly install zhcon, and the second is ~ /. Add the export LANG = en_US to bashrc. These two methods have disadvantages. Zhcon is a plug-in that cannot run with the system startup, and the Chinese font is too large. The result of export LANG is that it cannot be displayed in the terminal of X (it is said that this is the case. I verified it just now ~ /. Add export LANGUAGE = en to bashrc. after entering the desktop, all the interfaces will be in English! It is estimated that people who provide this method do not know yet ~ /. I18n usage ).
In/etc/sysconfig/i18n, since the CONSOLE_NOT_LOCALIZED = yes definition is available, why does the console still try to display Chinese characters? According to the experience of mandrake, the system language of the two releases is also/etc/profile. d/lang. sh, and the problem is found. The 10lang. sh of mandrake contains the following lines:
if [ -n "$DISPLAY" ]; then[ "$X11_NOT_LOCALIZED" = "yes" ] && LANGUAGE=Celif [ -z "$DESKTOP" ]; then[ "$CONSOLE_NOT_LOCALIZED" = "yes" ] && LANGUAGE=Cfi[ -n "$LANGUAGE" ] && export LANGUAGE
|
I don't understand scripts and languages, but I have a basic understanding of English. I guess what this means: If X11_NOT_LOCALIZED "=" yes "is defined, the local language of display will become invalid, if CONSOLE_NOT_LOCALIZED "=" yes "is defined, then desktop (?) The local language will become invalid. That is to say, there are few rows,/etc/sysconfig/i18n or ~ /. The CONSOLE_NOT_LOCALIZED = yes definition of i18n does not work. Draw the lines according to the samples and try these lines in/etc/profile. d/lang. sh. Sure enough, the console only displays English and the X environment is Chinese.