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

**URL:** <https://discourse.cataclysmdda.org/t/in-json-is-causing-the-error-on-a-russian-windows/3223>\
**Category:** The Garage\
**Created:** [September 25, 2013, 4:29pm UTC](https://discourse.cataclysmdda.org/t/in-json-is-causing-the-error-on-a-russian-windows/3223 "2013-09-25T16:29:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Savidiy](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@Savidiy](https://discourse.cataclysmdda.org/u/Savidiy)\
**Post date:** [September 25, 2013, 4:29pm UTC](https://discourse.cataclysmdda.org/t/in-json-is-causing-the-error-on-a-russian-windows/3223/1 "2013-09-25T16:29:46Z")

</div>

[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:

```auto

```

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.

---

<div class="post-metadata">

**Author:** ![yobbo](https://avatars.discourse-cdn.com/v4/letter/y/b9e5f3/32.png) [@yobbo](https://discourse.cataclysmdda.org/u/yobbo)\
**Post date:** [September 25, 2013, 8:22pm UTC](https://discourse.cataclysmdda.org/t/in-json-is-causing-the-error-on-a-russian-windows/3223/2 "2013-09-25T20:22:07Z")

</div>

Looks like the same problem as [https://github.com/CleverRaven/Cataclysm-DDA/issues/3191](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?

---

<div class="post-metadata">

**Author:** ![Savidiy](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@Savidiy](https://discourse.cataclysmdda.org/u/Savidiy)\
**Post date:** [September 26, 2013, 4:43am UTC](https://discourse.cataclysmdda.org/t/in-json-is-causing-the-error-on-a-russian-windows/3223/3 "2013-09-26T04:43:33Z")

</div>

[quote=“yobbo, post:2, topic:3223”]Looks like the same problem as [https://github.com/CleverRaven/Cataclysm-DDA/issues/3191](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.
