Fix locale for decimal points

resolves #514
This commit is contained in:
Christopher Dunn
2016-08-21 20:12:53 -05:00
parent b9afdf190d
commit 094a7d8564
2 changed files with 14 additions and 0 deletions

View File

@@ -1619,6 +1619,7 @@ bool OurReader::decodeDouble(Token& token, Value& decoded) {
Char buffer[bufferSize + 1];
memcpy(buffer, token.start_, ulength);
buffer[length] = 0;
fixNumericLocaleInput(buffer, buffer + length);
count = sscanf(buffer, format, &value);
} else {
JSONCPP_STRING buffer(token.start_, token.end_);