Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: The fix in CVS for the upper ASCII problem
Home

[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]
To: Paul Zastoupil <paulz@xxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: The fix in CVS for the upper ASCII problem
From: Paul Zastoupil <paulz@xxxxxxxxxxxx>
Date: Thu, 2 Aug 2001 17:46:02 -0700

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


[Prev in Thread] Current Thread [Next in Thread]