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