Issue #195: Actually call uselocale() in the new locale handling code in json_tokener.

Also, be sure the right locale_t is freed if we fail on the second uselocale.
Finally, fix test_locale so it *doesn't* use json_object_to_json_string as
 that will simple re-emit the original parsed string values.
This commit is contained in:
Eric Haszlakiewicz
2016-07-31 14:39:56 -04:00
parent 4091b9c87e
commit fa76e4a8c9
3 changed files with 25 additions and 5 deletions

View File

@@ -1,2 +1,2 @@
new_obj.to_string()=[ 1.2, 3.4, 123456.78, 5.0, 2.3e10 ]
new_obj.to_string()=[1.20,3.40,123456.78,5.00,23000000000.00]
new_obj.to_string()=[1.2,3.4,123456.78,5.0,2.3e10]