瀏覽代碼

setlocate(LC_NUMERIC, "C") moved to gisinit()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32078 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 17 年之前
父節點
當前提交
1a86359481
共有 4 個文件被更改,包括 4 次插入11 次删除
  1. 0 4
      gui/wxpython/nviz/init.cpp
  2. 0 4
      gui/wxpython/vdigit/digit.cpp
  3. 0 3
      gui/wxpython/vdigit/driver.cpp
  4. 4 0
      lib/gis/gisinit.c

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

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

+ 0 - 4
gui/wxpython/vdigit/digit.cpp

@@ -14,8 +14,6 @@
    \date 2008
 */
 
-#include <clocale>
-
 #include "driver.h"
 #include "digit.h"
 
@@ -26,8 +24,6 @@
 */
 Digit::Digit(DisplayDriver *ddriver)
 {
-    setlocale(LC_NUMERIC, "C");
-
     display = ddriver;
 
     if (display->mapInfo) {

+ 0 - 3
gui/wxpython/vdigit/driver.cpp

@@ -17,7 +17,6 @@
 */
 
 #include <cmath>
-#include <clocale>
 
 #include "driver.h"
 
@@ -32,8 +31,6 @@
 */
 DisplayDriver::DisplayDriver(void *device)
 {
-    setlocale(LC_NUMERIC, "C");
-
     G_gisinit(""); /* GRASS functions */
 
     mapInfo = NULL;

+ 4 - 0
lib/gis/gisinit.c

@@ -16,6 +16,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/stat.h>
+#include <locale.h>
+
 #include <grass/gis.h>
 #include "G.h"
 #include <grass/glocale.h>
@@ -140,5 +142,7 @@ static int gisinit(void)
 
     initialized = 1;
 
+    setlocale(LC_NUMERIC, "C");
+
     return 0;
 }