[Freeciv-Dev] Re: The fix in CVS for the upper ASCII problem
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Thu, Aug 02, 2001 at 05:30:50PM -0700, Paul Zastoupil wrote:
> On Thu, Aug 02, 2001 at 05:29:09PM -0700, Paul Zastoupil wrote:
> > The fix that went into CVS isn't portable.
> >
> > setenv is BSD compatable but not POSIX so it doesn't compile on my
> > solaris box.
> >
> > Will putenv work (almost) everywhere?
>
>
> What I meant was:
> Index: client/gui-gtk/gui_main.c
> ===================================================================
> RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk/gui_main.c,v
> retrieving revision 1.85
> diff -u -r1.85 gui_main.c
> --- client/gui-gtk/gui_main.c 2001/08/01 22:34:11 1.85
> +++ client/gui-gtk/gui_main.c 2001/08/03 00:52:42
> @@ -650,7 +650,7 @@
> in the next release. */
>
> if (!strcmp(setlocale(LC_CTYPE, NULL), "C"))
> - setenv("LC_CTYPE", "en_US.ISO8859-1", TRUE);
> + putenv("LC_CTYPE=en_US.ISO8859-1");
> #endif
>
> gtk_set_locale();
Also, FWIW, configure checks for setenv... not sure why, I guess its the
standard configure thing to use, but up till now Freeciv hasn't used it.
The above was tested on sparc solaris and x86 linux.
--
Paul Zastoupil
|
|