2016-09-22 12:48:04 +02:00
|
|
|
---
|
2023-09-19 15:54:47 +02:00
|
|
|
src/main.c | 11 ++++++++---
|
|
|
|
1 file changed, 8 insertions(+), 3 deletions(-)
|
2016-09-22 12:48:04 +02:00
|
|
|
|
2023-09-19 15:54:47 +02:00
|
|
|
--- src/main.c
|
|
|
|
+++ src/main.c 2023-09-13 10:32:19.633436763 +0000
|
|
|
|
@@ -23,6 +23,7 @@
|
|
|
|
|
|
|
|
#include <errno.h>
|
|
|
|
#include <locale.h>
|
2007-07-27 02:14:11 +02:00
|
|
|
+#include <langinfo.h>
|
2023-09-19 15:54:47 +02:00
|
|
|
#include <signal.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
@@ -805,9 +806,6 @@ main(int argc, char **argv)
|
|
|
|
}
|
2007-07-27 02:14:11 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 15:54:47 +02:00
|
|
|
- setlocale(LC_ALL, "");
|
|
|
|
- XtSetLanguageProc(NULL, NULL, NULL);
|
2007-07-27 02:14:11 +02:00
|
|
|
-
|
2023-09-19 15:54:47 +02:00
|
|
|
/*
|
|
|
|
* save the command line arguments
|
|
|
|
*/
|
|
|
|
@@ -914,6 +912,10 @@ main(int argc, char **argv)
|
|
|
|
else
|
2013-12-10 15:25:41 +01:00
|
|
|
setup_icons_big();
|
2007-07-27 02:14:11 +02:00
|
|
|
|
2023-09-19 15:54:47 +02:00
|
|
|
+ if (NULL == strcasestr(nl_langinfo(CODESET),"ANSI") &&
|
|
|
|
+ NULL == strcasestr(nl_langinfo(CODESET),"ISO-8859-"))
|
|
|
|
+ appres.international = True;
|
2007-07-27 02:14:11 +02:00
|
|
|
+
|
2023-09-19 15:54:47 +02:00
|
|
|
/*************************************************/
|
|
|
|
/* indicate if the international option is unset */
|
|
|
|
/*************************************************/
|
|
|
|
@@ -1663,6 +1665,9 @@ setup_visual(int *argc_p, char **argv, A
|
2007-07-27 02:14:11 +02:00
|
|
|
*/
|
2023-09-19 15:54:47 +02:00
|
|
|
tool = XtAppInitialize (&tool_app, "Fig", options, XtNumber (options),
|
|
|
|
argc_p, argv, fallback_resources, args, 0);
|
2007-07-27 02:14:11 +02:00
|
|
|
+ setlocale(LC_ALL, "");
|
|
|
|
+ XtSetLanguageProc(tool_app, NULL, NULL);
|
2023-09-19 15:54:47 +02:00
|
|
|
+
|
2007-07-27 02:14:11 +02:00
|
|
|
/* save important info */
|
|
|
|
tool_d = XtDisplay(tool);
|
|
|
|
tool_s = XtScreen(tool);
|