Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rapidjson internal assertion failure when using a locale that uses "," as decimal seperator #144

Closed
nebw opened this issue Dec 20, 2014 · 3 comments

Comments

@nebw
Copy link

nebw commented Dec 20, 2014

Cereal uses an old version of rapidjson which may use "," as a decimal seperator (see Tencent/rapidjson#72). This was fixed in the rapidjson commit Tencent/rapidjson@adb3974 .

Is it possible to update to a newer rapidjson version or to merge the specific changes in the mentioned commit?

@AzothAmmo
Copy link
Contributor

Updating RapidJSON is on our TODO list (see #82, which includes some heavier work too) but if people are running into issues we can make updating it more of a priority.

@nebw
Copy link
Author

nebw commented Dec 21, 2014

Thanks for the quick reply. In our case, we opted for setting the LC_NUMERIC locale manually on program startup for now. Therefore, we have no immediate need for a fix.

On the other hand, I'd say that this is a very urgent problem as it effectively breaks json support for all use cases where any user might have a non-english locale.

@AzothAmmo
Copy link
Contributor

Added a new branch for updating rapidjson: https://github.com/USCiLab/cereal/tree/new_rapidjson, see 1934a32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants