]> git.pld-linux.org Git - packages/xfig.git/commitdiff
locale fix
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 30 Oct 2000 18:55:08 +0000 (18:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
glibc 2.2 locale support

Changed files:
    xfig-i18n.patch -> 1.2

xfig-i18n.patch

index 0c907e1bf84cf02d62a9e2b0621468650c244eb2..d9b4ad2e2570a03ada39f074ef75a1f8a04ce500 100644 (file)
@@ -1,6 +1,6 @@
-diff -Nur --exclude *~ xfig.3.2.3c/Imakefile xfig.3.2.3c.new/Imakefile
---- xfig.3.2.3c/Imakefile      Fri Oct 27 23:46:21 2000
-+++ xfig.3.2.3c.new/Imakefile  Sat Oct 28 00:01:28 2000
+diff -urN xfig.3.2.3c.org/Imakefile xfig.3.2.3c/Imakefile
+--- xfig.3.2.3c.org/Imakefile  Mon Oct 30 19:51:43 2000
++++ xfig.3.2.3c/Imakefile      Mon Oct 30 19:52:03 2000
 @@ -104,7 +104,7 @@
  XCOMM If your setlocale() dosen't support the locale, you should
  XCOMM add -DSETLOCALE to I18N_DEFS.
@@ -10,3 +10,29 @@ diff -Nur --exclude *~ xfig.3.2.3c/Imakefile xfig.3.2.3c.new/Imakefile
  
  XCOMM If using an input tablet uncomment the following
  
+diff -urN xfig.3.2.3c.org/main.c xfig.3.2.3c/main.c
+--- xfig.3.2.3c.org/main.c     Mon Oct 30 19:51:44 2000
++++ xfig.3.2.3c/main.c Mon Oct 30 19:54:47 2000
+@@ -631,8 +631,21 @@
+     }
+ #ifdef I18N
+-    setlocale(LC_ALL, "");
++    /* don't set LC_ALL here because LC_NUMERIC below won't work. --misiek */
++    setlocale(LC_COLLATE, "");
++    setlocale(LC_CTYPE, "");
++    setlocale(LC_MESSAGES, "");
++    setlocale(LC_MONETARY, "");
++    setlocale(LC_TIME, "");
+     setlocale(LC_NUMERIC, "C");
++#ifdef LC_IDENTIFICATION /* glibc 2.2 */
++    setlocale(LC_PAPER, "");
++    setlocale(LC_NAME, "");
++    setlocale(LC_ADDRESS, "");
++    setlocale(LC_TELEPHONE, "");
++    setlocale(LC_MEASUREMENT, "");
++    setlocale(LC_IDENTIFICATION, "");
++#endif
+     XtSetLanguageProc(NULL, NULL, NULL);
+ #endif  /* I18N */
This page took 0.049422 seconds and 4 git commands to generate.