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) { |