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. _______________________________________________ Bug-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-glpk
