mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-27 11:21:02 +08:00
b8aaa03367
`snprintf()` will use the current `LC_NUMERIC` locale for converting a double to a string, which will use a `,` instead of a `.` in some locales (e.g. de_DE). `std::stringstream` allows setting the locale to `"C"` to always get a `.`. This occurs only for that `stringstream` instance; no global is altered.