|
From: Hin-Tak L. <hin...@ya...> - 2003-07-28 23:28:36
|
Almost. I asked you to search for "CHAR_ENCODING".
It occured twice, and you only did one thing :-).
You need
envsize += 1;
where the other is.
(I know it is unfair because the other instance is
in a comment, but it is commented for a reason - exactly
the sort of things we are doing: so that it is possible
to searching for corresponding changes!)
When it works for you, do let us (the list know).
(and no need to e-mail me if you are e-mailing the list,
because I am in it!)
Jun Sun wrote:
> 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)
>
>
>
> -------------------------------------------------------
> 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
>
|