diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-08-10 16:00:31 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-08-10 16:00:31 -0400 |
commit | 350cd657ad6aa6e44e0948f586ab1bbc7992d857 (patch) | |
tree | e9fb9382fabaaa7e21d85a2638ca1cd2aad88d86 /json.c | |
parent | 96d30de53c66c9628b2e862e1e7f119ce3679a85 (diff) | |
download | gpsd-350cd657ad6aa6e44e0948f586ab1bbc7992d857.tar.gz |
Add an explanatory note.
Diffstat (limited to 'json.c')
-rw-r--r-- | json.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |