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
[email protected]
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.



_______________________________________________
Bug-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-glpk

Reply via email to