[Bug-glpk] str2num() is locale dependent

2009-05-23 Thread xypron
Hello Andrew, I tried to call the GLPK library from Java under Debian. I received the following error: transp.mod:58: d requires numeric data Context: ...peka 275 ; param d : New-York Chicago Topeka := Seattle 2.51 The problem could be traced back to val = strtod(2,1, endptr);

Re: [Bug-glpk] str2num() is locale dependent

2009-05-23 Thread xypron
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