[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.


"... 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


Bug-glpk mailing list

View this message in context: 
Sent from the Gnu - GLPK - Bugs mailing list archive at Nabble.com.

reply via email to

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