summaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-17 09:43:20 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-17 09:43:20 -0500
commit904b568b169b8f21c3b380bc3a98b0f79f80c7db (patch)
treed55569ac132290faf8f1fe2cbefe436d668453d4 /json.h
parent1fadd3a923fa3a181ca00c23f7f7171f3ebd0488 (diff)
downloadgpsd-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/json.h b/json.h
index 6e48cddb..eae43c50 100644
--- a/json.h
+++ b/json.h
@@ -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