Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1850)

Unified Diff: base/json_reader.cc

Issue 9509: Make unit_tests pass with pt_BR.UTF-8 locale. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/base_lib.scons ('k') | base/json_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/json_reader.cc
===================================================================
--- base/json_reader.cc (revision 5165)
+++ base/json_reader.cc (working copy)
@@ -329,7 +329,8 @@
}
double num_double;
- if (StringToDouble(num_string, &num_double) && base::IsFinite(num_double)) {
+ if (StringToDouble(num_string, &num_double, LOCALE_INDEPENDENT) &&
+ base::IsFinite(num_double)) {
*node = Value::CreateRealValue(num_double);
return true;
}
« no previous file with comments | « base/base_lib.scons ('k') | base/json_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698