diff options
author | Mark Pulford <mark@kyne.com.au> | 2011-10-05 23:30:27 +1030 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2011-10-05 23:30:27 +1030 |
commit | 0f3ab84a261292d16f684551e67f2f007199936a (patch) | |
tree | 5ece4652a08b968232b417f5cf4ceaf234f2be2f /NEWS | |
parent | 03fa2b508aee4cdf2eac41d53834412ac757feef (diff) | |
download | lua-cjson-0f3ab84a261292d16f684551e67f2f007199936a.tar.gz lua-cjson-0f3ab84a261292d16f684551e67f2f007199936a.tar.bz2 lua-cjson-0f3ab84a261292d16f684551e67f2f007199936a.zip |
Support locales which use comma decimal separators
Some locales (cs_CZ, de_DE,..) use a comma as their decimal separator.
This causes CJSON to generate incorrect JSON (Eg, [10,1]), and fail when
parsing some valid JSON (Eg, [10,"test"]).
Added USE_POSIX_LOCALE #define which harnesses the thread-safe
POSIX.1-2008 locale support (newlocale(), uselocale(), freelocale())
to temporarily use the POSIX locale during JSON conversion.
Some older POSIX operating systems with xlocale.h (MacOSX) are also
supported.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,3 +1,6 @@ | |||
1 | Version 1.0.4 (?) | ||
2 | * Handle locales with a comma decimal separator | ||
3 | |||
1 | Version 1.0.3 (Sep 15 2011) | 4 | Version 1.0.3 (Sep 15 2011) |
2 | * Fixed detection of objects with numeric string keys | 5 | * Fixed detection of objects with numeric string keys |
3 | * Provided work around for missing isinf() on Solaris | 6 | * Provided work around for missing isinf() on Solaris |