From 597fe245826402237fdf05e489a40fef37cd5e464950cdbd525fe68867436c01 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 6 Sep 2018 13:41:32 +0000 Subject: [PATCH] boo#1106850 OBS-URL: https://build.opensuse.org/package/show/graphics/xfig?expand=0&rev=66 --- xfig.3.2.5b-locale.dif | 8 +++----- xfig.changes | 6 ++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/xfig.3.2.5b-locale.dif b/xfig.3.2.5b-locale.dif index efc96d1..a47bb68 100644 --- a/xfig.3.2.5b-locale.dif +++ b/xfig.3.2.5b-locale.dif @@ -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 */ diff --git a/xfig.changes b/xfig.changes index 1a74e25..65330ac 100644 --- a/xfig.changes +++ b/xfig.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Sep 6 13:40:48 UTC 2018 - Dr. Werner Fink + +- Revert workaround from locale patch as it breaks UTF-8 text + in file and object handling + ------------------------------------------------------------------- Thu Sep 6 11:32:18 UTC 2018 - Dr. Werner Fink