[GRASS-SVN] r32078 - in grass/trunk: gui/wxpython/nviz
gui/wxpython/vdigit lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 11 13:06:19 EDT 2008
Author: martinl
Date: 2008-07-11 13:06:19 -0400 (Fri, 11 Jul 2008)
New Revision: 32078
Modified:
grass/trunk/gui/wxpython/nviz/init.cpp
grass/trunk/gui/wxpython/vdigit/digit.cpp
grass/trunk/gui/wxpython/vdigit/driver.cpp
grass/trunk/lib/gis/gisinit.c
Log:
setlocate(LC_NUMERIC, "C") moved to gisinit()
Modified: grass/trunk/gui/wxpython/nviz/init.cpp
===================================================================
--- grass/trunk/gui/wxpython/nviz/init.cpp 2008-07-11 15:53:44 UTC (rev 32077)
+++ grass/trunk/gui/wxpython/nviz/init.cpp 2008-07-11 17:06:19 UTC (rev 32078)
@@ -16,8 +16,6 @@
\date 2008
*/
-#include <clocale>
-
#include "nviz.h"
static void swap_gl();
@@ -27,8 +25,6 @@
*/
Nviz::Nviz()
{
- setlocale(LC_NUMERIC, "C");
-
G_gisinit(""); /* GRASS functions */
G_set_verbose(0); // TODO: read progress info
Modified: grass/trunk/gui/wxpython/vdigit/digit.cpp
===================================================================
--- grass/trunk/gui/wxpython/vdigit/digit.cpp 2008-07-11 15:53:44 UTC (rev 32077)
+++ grass/trunk/gui/wxpython/vdigit/digit.cpp 2008-07-11 17:06:19 UTC (rev 32078)
@@ -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) {
Modified: grass/trunk/gui/wxpython/vdigit/driver.cpp
===================================================================
--- grass/trunk/gui/wxpython/vdigit/driver.cpp 2008-07-11 15:53:44 UTC (rev 32077)
+++ grass/trunk/gui/wxpython/vdigit/driver.cpp 2008-07-11 17:06:19 UTC (rev 32078)
@@ -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;
Modified: grass/trunk/lib/gis/gisinit.c
===================================================================
--- grass/trunk/lib/gis/gisinit.c 2008-07-11 15:53:44 UTC (rev 32077)
+++ grass/trunk/lib/gis/gisinit.c 2008-07-11 17:06:19 UTC (rev 32078)
@@ -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 @@
initialized = 1;
+ setlocale(LC_NUMERIC, "C");
+
return 0;
}
More information about the grass-commit
mailing list