|
From: Jun S. <js...@ju...> - 2003-07-29 00:46:05
|
On Tue, Jul 29, 2003 at 12:33:01AM +0100, Hin-Tak Leung wrote:
> 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!)
>
I tried that, in a slight different way. See below. It did not
work either. :)
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 17:43:32.000000000 -0700
@@ -2631,7 +2631,7 @@
for (i = 0 ; environ [i] != NULL ; i++)
;
/* compute number of Setenv() calls below */
- envsize = 1; /* (NULL terminating entry) */
+ envsize = 2; /* (NULL terminating entry) */
envsize += 3; /* TERM, WINDOWID, DISPLAY */
#ifdef UTMP
envsize += 1; /* LOGNAME */
@@ -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)
> 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!)
>
I was just lazy to remove your email from To list manually when I use
group-reply. The mailing list really should handle that.
BTW I am receiving two copies of your reply every time too for the same
reason.
Jun
> 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
> >
>
>
>
> -------------------------------------------------------
> 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
|