Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upJSON Parsing and I18N, syntax errors on floating point numbers #3191
Comments
This comment has been minimized.
This comment has been minimized.
|
Gosh that is unfortunate. I guess that makes the 0.8 version unusable for languages that don't use a compatible decimal format? I think this should be fixed when i move things over to the new json parser, as it shouldn't have this problem. It does the parsing manually, thus completely ignoring the locale. I think about half of the files have been moved over already, so should be about a week for the rest. The only way to fix 0.8 would be to explicitly override the LC_NUMERIC setting, i guess. |
This comment has been minimized.
This comment has been minimized.
|
Or people can change their localization setting on their computer when they want to play. Since there already is a relatively easy fix for it, it might be better just to focus on fixing it in the experimental. |
This comment has been minimized.
This comment has been minimized.
|
This issue affects me too. I've closed my bug report. |
This comment has been minimized.
This comment has been minimized.
|
we should change the locale on the json stream. imbue should do what we need |
This comment has been minimized.
This comment has been minimized.
|
#3279 fixes this for 0.8. It will cease to be an issue when everything is converted over to the new json loader. |
yobbobanana
referenced this issue
Oct 1, 2013
Closed
[WIP] New JsonOut class for JSON serialization. #3379
This comment has been minimized.
This comment has been minimized.
|
Can be closed |
lastmikoi commentedSep 22, 2013
The current JSON parsing is locale-dependent.
That is to say, the parser will interpret numbers as to be internationalized.
Steps to reproduce :