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

Unified Diff: src/inspector/string-util.h

Issue 2410933002: [inspector] fix timestamp formatting with non C locales (Closed)
Patch Set: better test Created 4 years, 2 months 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
Index: src/inspector/string-util.h
diff --git a/src/inspector/string-util.h b/src/inspector/string-util.h
index 30137b8b786f9796b2286780a2c89194b66b1a43..0d40ae729fa9cb92e0308d7685313eefe0412234 100644
--- a/src/inspector/string-util.h
+++ b/src/inspector/string-util.h
@@ -28,7 +28,9 @@ class StringUtil {
static String fromInteger(size_t number) {
return String::fromInteger(number);
}
- static String fromDouble(double number) { return String::fromDouble(number); }
+ static String fromDouble(double number) {
+ return String::fromDoubleForcePointAsSeparator(number);
+ }
static const size_t kNotFound = String::kNotFound;
static void builderReserve(StringBuilder& builder, size_t capacity) {
builder.reserveCapacity(capacity);

Powered by Google App Engine
This is Rietveld 408576698