[Xcircuit-dev] setlocale()
Mishka
mishka at batraq.anything3d.com
Fri Jun 6 09:18:48 PDT 2003
Greetings!
Having built xcircuit-3.1.5 on NetBSD 1.6R i found
the warning message about inappropriate locale settings
(can't set it).
In the xcircuit.c I found the following:
/*-------------------------------------------------------------*/
/* Force LC_NUMERIC locale to en_US for decimal point = period */
/* notation. The environment variable LC_NUMERIC overrides if */
/* it is set explicitly, so it has to be unset first to allow */
/* setlocale() to work. */
/*-------------------------------------------------------------*/
#ifdef HAVE_PUTENV
putenv("LC_ALL=en_US");
putenv("LC_NUMERIC=en_US");
putenv("LANG=POSIX");
#else
unsetenv("LC_ALL");
unsetenv("LC_NUMERIC");
setenv("LANG", "POSIX", 1);
#endif
setlocale(LC_ALL, "en_US");
So my question - is it really need to set LC_NUMERIC to en_US?
I tried use xcircuit without these and found no problem. What
should I do to represent that buggy situation with incorrect
period notation?
--
Thanks in advance,
Mishka.
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Xcircuit-dev mailing list
Xcircuit-dev at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcircuit-dev
More information about the Xcircuit-dev
mailing list