]> git.pld-linux.org Git - packages/joe.git/commitdiff
- updated
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 25 Apr 2004 21:11:38 +0000 (21:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    joe-isalnum.patch -> 1.2

joe-isalnum.patch

index e596c6aa94720a58b8117fad2c52c61cb87a5b5f..da251407256630b71bf4ba51f275631f08d99e15 100644 (file)
@@ -1,20 +1,21 @@
---- utils.c.old        Tue Mar 19 20:03:03 2002
-+++ utils.c    Tue Mar 19 20:23:48 2002
-@@ -34,7 +34,7 @@
+diff -urN utils.c utils.c
+--- utils.c    2004-04-25 23:10:36.077137480 +0200
++++ utils.c    2004-04-25 23:11:27.019393080 +0200
+@@ -35,7 +35,7 @@
  /*
   * Define function isblank(c)
   *    !!! code which uses isblank() assumes tested char is evaluated
 - *    only once, so it musn't be a macro
 + *    only once, so it mustn't be a macro
   */
- #ifndef HAVE_WORKING_ISBLANK
- int isblank(int c)
-@@ -73,7 +73,7 @@
-  */
- unsigned int isalnum_(unsigned int c)
- {
--      return (isalnum(c) || (c == 95));
-+      return (c >= 0 && c < 256 && (isalnum(c) || (c == 95)));
+ /* GNU is blank does not work properly for wide characters */
+@@ -85,7 +85,7 @@
+       if (wide)
+               return (iswalnum(c) || (c == 95));
+       else
+-              return (isalnum(c) || (c == 95));
++              return (c >= 0 && c < 256 && (isalnum(c) || (c == 95)));
  }
  
  /* Versions of 'read' and 'write' which automatically retry when interrupted */
This page took 0.274191 seconds and 4 git commands to generate.