bug-glpk
[Top][All Lists]
Advanced

[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: Sat, 23 May 2009 14:03:38 -0700 (PDT)

Hello Andrew,

as locales cannot be reset easily with standard C - functions
probably the best thing to do is to replace the decimal point
by lconv->decimal_point before calling str2num().

lcconv can be retrieved by calling localeconv().

Best regards

Xypron



xypron wrote:
> 
> I guess the GLPK library should work whatever locale the main program is
> using.
> 
> Could you, please, fix function 
> int str2num(const char *str, double *_val)
> in glplib11.c not to be locale dependent.
> 
> http://www.opengroup.org/onlinepubs/000095399/toc.htm

-- 
View this message in context: 
http://www.nabble.com/str2num%28%29-is-locale-dependent-tp23687810p23688258.html
Sent from the Gnu - GLPK - Bugs mailing list archive at Nabble.com.





reply via email to

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