Browse Source

Merge topic 'cmake-gui-locale'

cab095e1 cmake-gui: Always use "C" locale for numbers (#16099)
Brad King 9 years ago
parent
commit
7057864560
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Source/QtDialog/CMakeSetup.cxx

+ 2 - 0
Source/QtDialog/CMakeSetup.cxx

@@ -94,6 +94,8 @@ int main(int argc, char** argv)
 
   QApplication app(argc, argv);
 
+  setlocale(LC_NUMERIC, "C");
+
 #if defined(CMAKE_ENCODING_UTF8)
   QTextCodec* utf8_codec = QTextCodec::codecForName("UTF-8");
   QTextCodec::setCodecForLocale(utf8_codec);