Hwo to set different LC_ALL between console and X?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Every one love to use their mother-languages, for me, it's GB2312, a
Chinsese encode. And when I installed RH9, I select Chinese as the
default language, and the whole X works fine with Chinese, but, it's
rather worse in text-mode console, I mean, logining into text-mode
console. Commands still out Chinese chars, they appear like !@%#WFE@Q...
I want to set LC to C when I login into text-mode console, and set LC to
GB2312 when I get into X, ( I usually power the system in runlevel 5) 

I managed to set it in those profiles, but in scrpts, I don't know how
to distinguish whether I'm in text-mode or X, could anyone help me?
-- 
ÒóÃù <yinming@xxxxxxxxxx>

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux