chrismanning/jbson

JSON: float parser/writer is locale-dependent

Closed this issue · 0 comments

Uses C's strtod() which turns out to be locale-dependent, failing to properly parse JSON floats (always using ".") in locales which use a comma as a decimal point.

snprintf() is also locale dependent and writes floats with a comma as decimal point which is invalid JSON.