Menu

#52 Fixed print_number internal function from using ',' for decimal value separator for certain locale

v1.0 (example)
unread
None
5
2016-01-06
2016-01-06
No

Hello, I'd like to submit this patch to fix print_number() internal function in cJSON when LC_NUMERIC is set to certain locale that uses ',' for decimal value separator.

The patch basically iterates through the buffer after sprintf(str,"%f"...) and change ',' to '.'
This makes cJSON implementation to not dependent on LC_NUMERIC value.

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB