From 350cd657ad6aa6e44e0948f586ab1bbc7992d857 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 10 Aug 2011 16:00:31 -0400 Subject: Add an explanatory note. --- json.c | 1 + 1 file changed, 1 insertion(+) (limited to 'json.c') 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); -- cgit v1.2.1