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

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

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?

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:51:03
@@ -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", TRUE);
 #endif
 
   gtk_set_locale();


-- 
Paul Zastoupil


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