pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
csvutils: add a patch to correctly use ctype(3) functions
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Wed Apr 6 15:22:11 2016 +0200
Changeset: ecc7946affa9aebb7ca297bd79c51a4f48b7834a
Modified Files:
csvutils/distinfo
Added Files:
csvutils/patches/patch-src_csvgrep.c
Log Message:
csvutils: add a patch to correctly use ctype(3) functions
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ecc7946affa9aebb7ca297bd79c51a4f48b7834a
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
csvutils/distinfo | 1 +
csvutils/patches/patch-src_csvgrep.c | 15 +++++++++++++++
2 files changed, 16 insertions(+)
diffs:
diff --git a/csvutils/distinfo b/csvutils/distinfo
index 307039d..538a47a 100644
--- a/csvutils/distinfo
+++ b/csvutils/distinfo
@@ -4,3 +4,4 @@ SHA1 (csvutils-0.9.3.tgz) = 0153f39f899c85cdf276316ebadfa4b2b537c7b3
RMD160 (csvutils-0.9.3.tgz) = 0805b32ac3df05a399bdf0028114985afd3118d7
Size (csvutils-0.9.3.tgz) = 47046 bytes
SHA1 (patch-Makefile) = fa6490dc31fa4b55898f0c1ec24a933192fc2a31
+SHA1 (patch-src_csvgrep.c) = 402b7eaea8c4db04ba76e86ecc65e66e397c4427
diff --git a/csvutils/patches/patch-src_csvgrep.c b/csvutils/patches/patch-src_csvgrep.c
new file mode 100644
index 0000000..c3e53ef
--- /dev/null
+++ b/csvutils/patches/patch-src_csvgrep.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Properly use toupper(3).
+
+--- src/csvgrep.c.orig 2008-07-27 17:45:20.000000000 +0000
++++ src/csvgrep.c
+@@ -778,7 +778,7 @@ main (int argc, char *argv[])
+ /* Upcase string for case insensitive fixed match*/
+ char *ptr = pattern;
+ while (*ptr)
+- *ptr = toupper(*ptr), ptr++;
++ *ptr = toupper((unsigned char)*ptr), ptr++;
+ }
+ } else if (match_type == PCRE) {
+ #ifdef WITHOUT_PCRE
Home |
Main Index |
Thread Index |
Old Index