Package: spatialite-gui / 1.7.1-5

05-setlocale.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
From: Alessandro Furieri <a.furieri@lqt.it>
Subject: Fix crash when using wxWidgets3.0

* Main.cpp: Use setlocale because wxWidgets does not seem to do it anymore

Origin: upstream, email
Bug-Debian: http://bugs.debian.org/761629
--- a/Main.cpp
+++ b/Main.cpp
@@ -104,6 +104,7 @@ wxFrame((wxFrame *) NULL, -1, title, pos
 //
 // main GUI frame constructor
 //
+  setlocale(LC_ALL, "");
   MemoryDatabase = false;
   AutoSaveInterval = 0;
   LastTotalChanges = 0;