rpms/vim/devel xxd-locale.patch,1.1,1.2
Karsten Hopp (karsten)
fedora-extras-commits at redhat.com
Fri Jul 18 12:25:30 UTC 2008
Author: karsten
Update of /cvs/extras/rpms/vim/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17382
Modified Files:
xxd-locale.patch
Log Message:
- modify patch for new rpm fuzz=0
xxd-locale.patch:
Index: xxd-locale.patch
===================================================================
RCS file: /cvs/extras/rpms/vim/devel/xxd-locale.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- xxd-locale.patch 9 Sep 2004 13:58:58 -0000 1.1
+++ xxd-locale.patch 18 Jul 2008 12:24:46 -0000 1.2
@@ -1,14 +1,15 @@
---- vim60ag/src/xxd/xxd.c.37073 Mon May 21 16:17:29 2001
-+++ vim60ag/src/xxd/xxd.c Mon May 21 16:32:12 2001
-@@ -81,6 +81,7 @@
+diff -up vim71/src/xxd/xxd.c.xxd vim71/src/xxd/xxd.c
+--- vim71/src/xxd/xxd.c.xxd 2008-07-18 14:21:03.000000000 +0200
++++ vim71/src/xxd/xxd.c 2008-07-18 14:23:48.000000000 +0200
+@@ -90,6 +90,7 @@
#if __MWERKS__ && !defined(BEBOX)
# include <unix.h> /* for fdopen() on MAC */
#endif
+#include <locale.h>
- /* This corrects the problem of missing prototypes for certain functions
- * in some GNU installations (e.g. SunOS 4.1.x).
-@@ -424,6 +425,11 @@
+ #if defined(__BORLANDC__) && __BORLANDC__ <= 0x0410 && !defined(fileno)
+ /* Missing define and prototype grabbed from the BC 4.0 <stdio.h> */
+@@ -452,6 +453,11 @@ char *argv[];
long length = -1, n = 0, seekoff = 0;
char l[LLEN+1];
char *pname, *pp;
@@ -16,16 +17,16 @@
+ if(!lang) lang=getenv("LC_ALL");
+ if(!lang) lang=getenv("LC_CTYPE");
+ if(lang)
-+ setlocale(LC_ALL, lang);
++ setlocale(LC_ALL, lang);
#ifdef AMIGA
/* This program doesn't work when started from the Workbench */
-@@ -728,7 +734,7 @@
+@@ -756,7 +762,7 @@ char *argv[];
#else
(e > 31 && e < 127)
#endif
- ? e : '.';
+ ? e : isalnum(e) ? e : '.';
if (e)
- nonzero++;
+ nonzero++;
n++;
More information about the fedora-extras-commits
mailing list