From: <hin...@ya...> - 2003-07-28 18:13:24
|
Yes, in fact I was about to write - in fact on my redhat 9 box LANG is "en_GB.UTF-8" (even under cxterm) which is wrong; on a normal gnome-term, the LANG setting causes a warning when one starts acrobat reader. No, you are not being greedy. cxterm should set LANG internally. It already set a few environment variables like TERM, and CHAR_ENCODING internally already, and there is no reason why it shouldn't set LANG also. Do you want to give it a go and send me a patch? Search the string "CHAR_ENCODING" and see how it is done. The change is quite simple I think, but I just don't have the time to do it at the moment :-). --- Jun Sun <js...@ju...> wrote: > > The problem was finally solved when Alain pointed > out that > I was setting wrong value to LANG. > > Now I am getting greedy. :) Is there a way to > automatically > set LANG to zh_CN.gb2312 when I fire cxterm?> > > BTW, setting LANG to "zh_CN" seems to work too. > > Jun > > ----------------------------- > On Tue, Jul 15, 2003 at 11:55:46AM +0200, Alain > Bench wrote: > > Hello Jun, > > > > On Sunday, July 13, 2003 at 3:00:26 PM -0700, Jun > Sun wrote: > > > > > I tried to set [LANG] to "gb2312", but I got all > "?????" marks in > > > places of chinese characters. :( > > > > Pick in output of "locale --all-locales" a > locale value using GB2312 > > charset, perhaps zh_CN or zh_CN.gb2312, or build > an en_US.gb2312 one > > (man localedef). It has to exist there, before you > assign it to LANG and > > the like. > > > > Ahh, I missed this email earlier. This actually > solves my problem by > > export LANG=zh_CN.gb2312 > > I also note that some other apps (such as vim) start > to display chinese > correctly after this setting. However some others > (such as less) still > can't get it. > > But I am happy. Thanks a bunch. > > Jun > > > Then verify in Mutt ":set ?charset" gives > "gb2312", otherwise set it > > explicitly in muttrc. Also set in muttrc: > > > > | set > +send_charset="us-ascii:iso-8859-1:iso-8859-15:windows-1252:iso-8859-2:windows-1 > +250:gb2312:utf-8" > > > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built > ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are > available now. > Download today and enter to win an XBOX or Visual > Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > cxterm-devel mailing list > cxt...@li... > https://lists.sourceforge.net/lists/listinfo/cxterm-devel ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ |