]> git.pld-linux.org Git - packages/celestia.git/blame - gtk-enable-locales-early.patch
generic url (jajcus, next time do adapter instead); adapter
[packages/celestia.git] / gtk-enable-locales-early.patch
CommitLineData
e11c2ee1
JK
1diff -dur celestia-1.6.1.orig/src/celestia/gtk/main.cpp celestia-1.6.1/src/celestia/gtk/main.cpp
2--- celestia-1.6.1.orig/src/celestia/gtk/main.cpp 2011-06-05 18:11:10.000000000 +0200
3+++ celestia-1.6.1/src/celestia/gtk/main.cpp 2015-07-10 18:51:53.261256046 +0200
4@@ -269,6 +269,16 @@
5 /* MAIN */
6 int main(int argc, char* argv[])
7 {
8+ /* Force number displays into C locale. */
9+ setlocale(LC_NUMERIC, "C");
10+ setlocale(LC_ALL, "");
11+
12+ #ifndef WIN32
13+ bindtextdomain(PACKAGE, LOCALEDIR);
14+ bind_textdomain_codeset(PACKAGE, "UTF-8");
15+ textdomain(PACKAGE);
16+ #endif /* WIN32 */
17+
18 /* Initialize the structure that holds the application's vitals. */
19 AppData* app = g_new0(AppData, 1);
20
21@@ -329,16 +339,6 @@
22
23 SetDebugVerbosity(0);
24
25- /* Force number displays into C locale. */
26- setlocale(LC_NUMERIC, "C");
27- setlocale(LC_ALL, "");
28-
29- #ifndef WIN32
30- bindtextdomain(PACKAGE, LOCALEDIR);
31- bind_textdomain_codeset(PACKAGE, "UTF-8");
32- textdomain(PACKAGE);
33- #endif /* WIN32 */
34-
35 app->core = new CelestiaCore();
36 if (app->core == NULL)
37 {
This page took 0.048981 seconds and 4 git commands to generate.