Skip to content

Commit 2304e04

Browse files
committed
fix for issue #10 (I think)
1 parent 265bbc6 commit 2304e04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/cpp-json/json.tcc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,10 @@ inline std::string value_to_string(const value &v, unsigned options, int indent,
292292
static const int indent_width = 2;
293293

294294
std::stringstream ss;
295-
295+
296+
std::locale c_locale("C");
297+
ss.imbue(c_locale);
298+
296299
if(!ignore_initial_ident) {
297300
ss << std::string(indent * indent_width, ' ');
298301
}

0 commit comments

Comments
 (0)