Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tcf-dev] "Json_read_double" fails on locale for with decimal point is not a period

Hi All,

 

Consider the “German” locale setting that makes use of the comma for the decimal point.

 

Suggested fix is set “C” locale for the string conversion in file “json.c” in function “json_read_double” (other source locations may apply as well)

 

char *saved_locale;

saved_locale = setlocale(LC_NUMERIC, "C");

n = strtod(buf, &end);

setlocale(LC_NUMERIC, saved_locale);

 

best regards,

Guenther

 

Guenther Nadbath, ABIX GmbH, www.a-bix.com

 


Back to the top