[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-glpk] str2num() is locale dependent
From: |
xypron |
Subject: |
Re: [Bug-glpk] str2num() is locale dependent |
Date: |
Sun, 24 May 2009 22:34:22 -0700 (PDT) |
Hello Andrew,
>> Probably strtod should be replaced by something like xstrtod.
I guess it is sufficient to substitute the decimal point in the input to
str2num() by lconv->decimal_point as returned by localeconv().
>> BTW, in the standard C on program startup the current locale is "C".
>> Is locale changed intentionally in your application?
In my Java program calling the GLPK library I do not set the locale.
It must be the Java runtime doing so.
see
http://java.sun.com/developer/technicalArticles/J2SE/locale/
"... the JVM determines the default locale from the host environment.
The host environment's locale is determined by the host operating system
and the user preferences established on that system. "
Best regards
Xypron
_______________________________________________
Bug-glpk mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-glpk
--
View this message in context:
http://www.nabble.com/str2num%28%29-is-locale-dependent-tp23687810p23701384.html
Sent from the Gnu - GLPK - Bugs mailing list archive at Nabble.com.