瀏覽代碼

nviz2/wxGUI: fix nviz extension crashing (locales-related)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32063 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 17 年之前
父節點
當前提交
5bcd7b38bd
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      gui/wxpython/nviz/init.cpp

+ 5 - 0
gui/wxpython/nviz/init.cpp

@@ -15,6 +15,9 @@
 
    \date 2008
 */
+
+#include <clocale>
+
 #include "nviz.h"
 
 static void swap_gl();
@@ -24,6 +27,8 @@ static void swap_gl();
 */
 Nviz::Nviz()
 {
+    setlocale(LC_NUMERIC, "C");
+
     G_gisinit(""); /* GRASS functions */
 
     G_set_verbose(0); // TODO: read progress info