diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-12 23:19:30 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-12 23:19:30 +0000 |
commit | 4f2ad3f5ab8550a404d4c70c29938c19110b3ecb (patch) | |
tree | ca8af381337293f5a3b1221b6e5a53849af02450 /base/json_reader.cc | |
parent | b377d9cd5c2a3e723dd55b797f52de8d2d41a032 (diff) | |
download | chromium_src-4f2ad3f5ab8550a404d4c70c29938c19110b3ecb.zip chromium_src-4f2ad3f5ab8550a404d4c70c29938c19110b3ecb.tar.gz chromium_src-4f2ad3f5ab8550a404d4c70c29938c19110b3ecb.tar.bz2 |
Make unit_tests pass with pt_BR.UTF-8 locale.
BUG=3675
Patch from Paweł Hajdan jr <phajdan.jr@gmail.com>
original issue: http://codereview.chromium.org/9509
Review URL: http://codereview.chromium.org/11002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5319 0039d316-1c4b-4281-b951-d872f2087c98
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; } |