File: 09-set-c-locale.diff

package info (click to toggle)
amoeba 1.1-31
  • links: PTS
  • area: contrib
  • in suites: bookworm, sid, trixie
  • size: 1,492 kB
  • sloc: cpp: 8,384; makefile: 140
file content (19 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Index: amoeba-1.1/main/linux-config/linux-config.cpp
===================================================================
--- amoeba-1.1.orig/main/linux-config/linux-config.cpp
+++ amoeba-1.1/main/linux-config/linux-config.cpp
@@ -23,6 +23,7 @@
 #include <unistd.h>
 #include <dlfcn.h>
 #include <errno.h>
+#include <locale.h>
 
 #include <GL/glx.h>
 #include <X11/extensions/xf86vmode.h>
@@ -528,4 +529,6 @@ void LinuxConfig::show(int *argc, char *
 	(*_gtk_widget_hide) (config);
 	(*_gtk_widget_destroy) (config);
 	(*_gtk_main_iteration_do) (false);
+
+	setlocale(LC_ALL, "C");
 }