|
From: Jun S. <js...@ju...> - 2003-07-28 23:07:24
|
On Mon, Jul 28, 2003 at 07:13:19PM +0100, Hin-Tak Leung wrote:
> 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 :-).
>
I tried the following, and it does not work. I looked around
and find myself really in a wonderland. Couldn't figure a thing. :)
Jun
diff -Nru ./cxterm/main.c.orig ./cxterm/main.c
--- ./cxterm/main.c.orig 2003-05-06 00:40:19.000000000 -0700
+++ ./cxterm/main.c 2003-07-28 16:04:06.000000000 -0700
@@ -2960,7 +2960,7 @@
#ifdef HANZI
Setenv ("CHAR_ENCODING=", term->misc.hz_encoding);
#endif
-
+ Setenv ("LANG=", "zh_CN");
/* need to reset after all the ioctl bashing we did above */
#if defined(sun) && !defined(SVR4)
|