From 0f3ab84a261292d16f684551e67f2f007199936a Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Wed, 5 Oct 2011 23:30:27 +1030 Subject: 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. --- NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 3527b04..634d9af 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +Version 1.0.4 (?) +* Handle locales with a comma decimal separator + Version 1.0.3 (Sep 15 2011) * Fixed detection of objects with numeric string keys * Provided work around for missing isinf() on Solaris -- cgit v1.2.3-55-g6feb