boo#1106850
OBS-URL: https://build.opensuse.org/package/show/graphics/xfig?expand=0&rev=66
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
src/main.c | 20 ++++++++++++++------
|
||||
src/main.c | 18 ++++++++++++------
|
||||
src/u_print.c | 1 +
|
||||
2 files changed, 15 insertions(+), 6 deletions(-)
|
||||
2 files changed, 13 insertions(+), 6 deletions(-)
|
||||
|
||||
--- src/main.c
|
||||
+++ src/main.c 2018-09-06 11:16:21.842867881 +0000
|
||||
@@ -43,15 +43,13 @@
|
||||
/************************************************************/
|
||||
/* if the international option has been set, set the locale */
|
||||
/************************************************************/
|
||||
@@ -1612,6 +1613,13 @@ setup_visual(int *argc_p, char **argv, A
|
||||
@@ -1612,6 +1613,11 @@ setup_visual(int *argc_p, char **argv, A
|
||||
*/
|
||||
tool = XtAppInitialize (&tool_app, "Fig", options, XtNumber (options), argc_p, argv,
|
||||
(String *) NULL, args, 0);
|
||||
+#ifdef I18N
|
||||
+ setlocale(LC_ALL, "");
|
||||
+ setlocale(LC_NUMERIC, "C");
|
||||
+ if (strcasestr(nl_langinfo(CODESET),"UTF-8"))
|
||||
+ setlocale(LC_CTYPE, "C");
|
||||
+ XtSetLanguageProc(tool_app, NULL, NULL);
|
||||
+#endif /* I18N */
|
||||
/* save important info */
|
||||
|
Reference in New Issue
Block a user