Skip to content

Commit fd89879

Browse files
committed
Revert: Make string to double conversion locale invariant.
It appears this actually is not necessary in JsonCpp 1.9.5 (see CommonCpp test: "JsonReader_WithDoubleValueAndDiffLocales_ReturnsNumberWithDecimalPart")
1 parent f147eb0 commit fd89879

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/lib_json/json_reader.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,6 @@ bool Reader::decodeDouble(Token& token, Value& decoded) {
601601
double value = 0;
602602
String buffer(token.start_, token.end_);
603603
IStringStream is(buffer);
604-
is.imbue(std::locale::classic());
605604
if (!(is >> value)) {
606605
if (value == std::numeric_limits<double>::max())
607606
value = std::numeric_limits<double>::infinity();

0 commit comments

Comments
 (0)