[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]
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
- [Freeciv-Dev] The fix in CVS for the upper ASCII problem,
Paul Zastoupil <=
|
|