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

Unified Diff: debugger/debuggermain.cpp

Issue 724753002: Fix debugger with GL to work with non-default locale (Closed) Base URL: https://skia.googlesource.com/skia.git@no-sierpinsky-profiles
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/debuggermain.cpp
diff --git a/debugger/debuggermain.cpp b/debugger/debuggermain.cpp
index f749911a982a8185fdd0071717b35e17b5ab100d..d537d363c9818a8111e91e700fb3b8393541bbbf 100644
--- a/debugger/debuggermain.cpp
+++ b/debugger/debuggermain.cpp
@@ -17,8 +17,13 @@ static void usage(const char * argv0) {
}
int main(int argc, char *argv[]) {
+#ifndef SK_BUILD_FOR_WIN32
+ // Set numeric formatting to default. Otherwise shaders will have numbers with wrong comma.
+ // QApplication documentation recommends setlocale("LC_NUMERIC", "C") after QApplication
+ // constuction. However, the components Qt calls (X11 libs, ..) will override that.
+ setenv("LC_NUMERIC", "C", 1);
+#endif
QApplication a(argc, argv);
-
QStringList argList = a.arguments();
if (argList.count() <= 0) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698