[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: 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 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: 
Sent from the Gnu - GLPK - Bugs mailing list archive at Nabble.com.

reply via email to

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