diff options
Diffstat (limited to 'base/json_reader.cc')
-rw-r--r-- | base/json_reader.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/json_reader.cc b/base/json_reader.cc index c0e019b..15d43cc 100644 --- a/base/json_reader.cc +++ b/base/json_reader.cc @@ -329,7 +329,8 @@ bool JSONReader::DecodeNumber(const Token& token, Value** node) { } double num_double; - if (StringToDouble(num_string, &num_double) && base::IsFinite(num_double)) { + if (base::StringToDouble(num_string, &num_double, base::LOCALE_INDEPENDENT) && + base::IsFinite(num_double)) { *node = Value::CreateRealValue(num_double); return true; } |