summaryrefslogtreecommitdiff
path: root/json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-08-10 16:00:31 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-08-10 16:00:31 -0400
commit350cd657ad6aa6e44e0948f586ab1bbc7992d857 (patch)
treee9fb9382fabaaa7e21d85a2638ca1cd2aad88d86 /json.c
parent96d30de53c66c9628b2e862e1e7f119ce3679a85 (diff)
downloadgpsd-350cd657ad6aa6e44e0948f586ab1bbc7992d857.tar.gz
Add an explanatory note.
Diffstat (limited to 'json.c')
-rw-r--r--json.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/json.c b/json.c
index c1ed524c..42cfbc9a 100644
--- a/json.c
+++ b/json.c
@@ -607,6 +607,7 @@ int json_read_object(const char *cp, const struct json_attr_t *attrs,
char *savedlocale = setlocale(LC_ALL, NULL);
int st;
+ /* temporary locale setting is required wherever ',' is the decimal point */
(void)setlocale(LC_ALL, "C");
json_debug_trace((1, "json_read_object() sees '%s'\n", cp));
st = json_internal_read_object(cp, attrs, NULL, 0, end);