]> git.pld-linux.org Git - packages/xfig.git/commitdiff
- fix locale for reading, too
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 25 Oct 2001 21:30:15 +0000 (21:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    xfig-i18n.patch -> 1.6

xfig-i18n.patch

index f063008e398e389ab1c36f51a612f7e90b61932b..d3d1a81f8bcd0afd96705c9c35d7fa938324d6e1 100644 (file)
@@ -1,6 +1,6 @@
-diff -Nur xfig.3.2.3c.orig/Fig.ad xfig.3.2.3c/Fig.ad
---- xfig.3.2.3c.orig/Fig.ad    Sun Apr  8 14:19:34 2001
-+++ xfig.3.2.3c/Fig.ad Sun Apr  8 14:19:50 2001
+diff -urN xfig.3.2.3d.org/Fig.ad xfig.3.2.3d/Fig.ad
+--- xfig.3.2.3d.org/Fig.ad     Thu Oct 25 23:14:36 2001
++++ xfig.3.2.3d/Fig.ad Thu Oct 25 23:15:04 2001
 @@ -158,7 +158,7 @@
  
  ! If xfig is compiled with I18N option, you may want to uncomment following line.
@@ -10,10 +10,10 @@ diff -Nur xfig.3.2.3c.orig/Fig.ad xfig.3.2.3c/Fig.ad
  
  ! Note that you shouldn't remove the following "Fig*international: false".  
  ! It must be there to cancel any *international: true that may defined via xrdb.
-diff -Nur xfig.3.2.3c.orig/Imakefile xfig.3.2.3c/Imakefile
---- xfig.3.2.3c.orig/Imakefile Sun Apr  8 14:19:34 2001
-+++ xfig.3.2.3c/Imakefile      Sun Apr  8 14:19:50 2001
-@@ -104,7 +104,7 @@
+diff -urN xfig.3.2.3d.org/Imakefile xfig.3.2.3d/Imakefile
+--- xfig.3.2.3d.org/Imakefile  Thu Oct 25 23:14:34 2001
++++ xfig.3.2.3d/Imakefile      Thu Oct 25 23:15:04 2001
+@@ -120,7 +120,7 @@
  XCOMM If your setlocale() dosen't support the locale, you should
  XCOMM add -DSETLOCALE to I18N_DEFS.
  
@@ -22,12 +22,34 @@ diff -Nur xfig.3.2.3c.orig/Imakefile xfig.3.2.3c/Imakefile
  
  XCOMM If using an input tablet uncomment the following
  
-diff -Nur xfig.3.2.3c.orig/f_read.c xfig.3.2.3c/f_read.c
---- xfig.3.2.3c.orig/f_read.c  Sun Apr  8 14:19:34 2001
-+++ xfig.3.2.3c/f_read.c       Sun Apr  8 20:00:50 2001
-diff -Nur xfig.3.2.3c.orig/f_save.c xfig.3.2.3c/f_save.c
---- xfig.3.2.3c.orig/f_save.c  Mon Jul  3 23:37:21 2000
-+++ xfig.3.2.3c/f_save.c       Sun Apr  8 19:52:38 2001
+diff -urN xfig.3.2.3d.org/f_read.c xfig.3.2.3d/f_read.c
+--- xfig.3.2.3d.org/f_read.c   Thu Oct 25 23:14:35 2001
++++ xfig.3.2.3d/f_read.c       Thu Oct 25 23:19:59 2001
+@@ -15,6 +15,7 @@
+  *
+  */
++#include <locale.h>
+ #include "fig.h"
+ #include "figx.h"
+ #include "resources.h"
+@@ -221,7 +222,13 @@
+     else {
+       if (!update_figs)
+           put_msg("Reading objects from \"%s\" ...", file_name);
++#ifdef I18N
++      setlocale(LC_NUMERIC, "C");
++#endif
+       status = readfp_fig(fp, obj, merge, xoff, yoff, settings);
++#ifdef I18N
++      setlocale(LC_NUMERIC, "");
++#endif
+       fclose(fp);
+       /* so subsequent file_msg() calls don't print wrong file name */
+       first_file_msg = False;
+diff -urN xfig.3.2.3d.org/f_save.c xfig.3.2.3d/f_save.c
+--- xfig.3.2.3d.org/f_save.c   Thu Oct 25 23:14:35 2001
++++ xfig.3.2.3d/f_save.c       Thu Oct 25 23:18:43 2001
 @@ -15,6 +15,7 @@
   *
   */
@@ -36,25 +58,29 @@ diff -Nur xfig.3.2.3c.orig/f_save.c xfig.3.2.3c/f_save.c
  #include "fig.h"
  #include "resources.h"
  #include "mode.h"
-@@ -90,6 +91,7 @@
+@@ -90,6 +91,9 @@
  
      if (!update_figs)
        put_msg("Writing . . .");
++#ifdef I18N
 +    setlocale(LC_NUMERIC, "C");
++#endif
      write_file_header(fp);
      for (a = objects.arcs; a != NULL; a = a->next) {
        num_object++;
-@@ -115,6 +117,7 @@
+@@ -115,6 +119,9 @@
        num_object++;
        write_text(fp, t);
      }
++#ifdef I18N
 +    setlocale(LC_NUMERIC, "");
++#endif
      if (ferror(fp)) {
        fclose(fp);
        return (-1);
-diff -Nur xfig.3.2.3c.orig/main.c xfig.3.2.3c/main.c
---- xfig.3.2.3c.orig/main.c    Mon Jul 24 18:02:50 2000
-+++ xfig.3.2.3c/main.c Sun Apr  8 14:20:55 2001
+diff -urN xfig.3.2.3d.org/main.c xfig.3.2.3d/main.c
+--- xfig.3.2.3d.org/main.c     Thu Oct 25 23:14:35 2001
++++ xfig.3.2.3d/main.c Thu Oct 25 23:15:04 2001
 @@ -632,7 +632,6 @@
  
  #ifdef I18N
This page took 0.113161 seconds and 4 git commands to generate.