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

JSON library doesn't work with locales that use comma as decimal separator #78

Open
danpla opened this issue Feb 11, 2019 · 0 comments
Open

Comments

@danpla
Copy link

danpla commented Feb 11, 2019

ccan/json library uses locale-dependent C routines (strtod() and sprintf()) to deal with numbers. If the program uses a locale with a comma as a decimal separator, the library will truncate numbers on reading (strtod() will ignore . and everything after it) and create broken JSONs (numbers will have , as separator instead of . as required by the standard).

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

No branches or pull requests

1 participant