"." in JSON is causing the error on a Russian Windows

[code]catajson.cpp[30]: Parse error in data/raw/techniques.json.

ERROR: syntax error at line 323 near: ,
catajson.cpp[30]: Parse error in data/raw/martialarts.json.

ERROR: syntax error at line 34 near: ,[/code]
Example:

Perhaps in the case of a separator whole and fractional part of the Russian localization. We have a comma(,) instead of a point(.).
If I change the separator to the point, the problem disappears.

Looks like the same problem as https://github.com/CleverRaven/Cataclysm-DDA/issues/3191.

We’re moving to a new JSON parser for 0.9 which won’t have this problem.

For 0.8, the workaround is to override the “LC_NUMERIC” environment variable. I think you can do this on windows? I assume setting it to something like “en_US” (just for cataclysm) will mean the numbers will be read correctly. Can you try it out and see if it works?

[quote=“yobbo, post:2, topic:3223”]Looks like the same problem as https://github.com/CleverRaven/Cataclysm-DDA/issues/3191.

We’re moving to a new JSON parser for 0.9 which won’t have this problem.

For 0.8, the workaround is to override the “LC_NUMERIC” environment variable. I think you can do this on windows? I assume setting it to something like “en_US” (just for cataclysm) will mean the numbers will be read correctly. Can you try it out and see if it works?[/quote]
It is work. When I added environment variable LC_NUMERIC=en_US, error disappeared.