File: decimal-point.patch

package info (click to toggle)
ipe 6.0pre30-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,100 kB
  • ctags: 5,419
  • sloc: cpp: 30,430; ansic: 1,045; xml: 845; makefile: 78; sh: 5
file content (21 lines) | stat: -rw-r--r-- 479 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- cvs.orig/src/ipe/main.cpp
+++ cvs/src/ipe/main.cpp
@@ -35,6 +35,7 @@
 
 #include <cstdio>
 #include <cstdlib>
+#include <locale.h>
 
 using namespace std;
 
@@ -101,6 +102,10 @@
 
   QApplication a( argc, argv );
 
+  // Ensure numbers are output with a period rather than a comma
+  // as the decimal point.
+  setlocale( LC_NUMERIC, "C" );
+
   // must create QApplication before first call to IpePreferences::Static.
   IpePreferences *prefs = IpePreferences::Static();