diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-12-17 09:43:20 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-12-17 09:43:20 -0500 |
commit | 904b568b169b8f21c3b380bc3a98b0f79f80c7db (patch) | |
tree | d55569ac132290faf8f1fe2cbefe436d668453d4 /json.h | |
parent | 1fadd3a923fa3a181ca00c23f7f7171f3ebd0488 (diff) | |
download | gpsd-904b568b169b8f21c3b380bc3a98b0f79f80c7db.tar.gz |
Prevent JSON parsing from becoming confused by client locales other than C.
Fixes Berlios tracker bug #17379: problem with different locale.
Diffstat (limited to 'json.h')
-rw-r--r-- | json.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -100,6 +100,7 @@ void json_enable_debug(int, FILE *); #define JSON_ERR_QNONSTRING 19 /* saw quoted value when expecting nonstring */ #define JSON_ERR_NONQSTRING 19 /* didn't see quoted value when expecting string */ #define JSON_ERR_MISC 20 /* other data conversion error */ +#define JSON_ERR_BADNUM 21 /* error while parsing a numerical argument */ /* * Use the following macros to declare template initializers for structobject |