aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2000-02-16 08:58:56 +0800
committerache <ache@FreeBSD.org>2000-02-16 08:58:56 +0800
commit58a7871527a661043e8a93e11666435279c18859 (patch)
tree01a5941ede5b8023eb1dae19741bbfaf60d2251a /mail
parenta9cff7a5223b8fd77c69d156eb6c0fee49857048 (diff)
downloadfreebsd-ports-gnome-58a7871527a661043e8a93e11666435279c18859.tar.gz
freebsd-ports-gnome-58a7871527a661043e8a93e11666435279c18859.tar.zst
freebsd-ports-gnome-58a7871527a661043e8a93e11666435279c18859.zip
8bit and locale fixes for search
Diffstat (limited to 'mail')
-rw-r--r--mail/pine4/files/patch-aa31
1 files changed, 31 insertions, 0 deletions
diff --git a/mail/pine4/files/patch-aa b/mail/pine4/files/patch-aa
new file mode 100644
index 000000000000..76a54207c123
--- /dev/null
+++ b/mail/pine4/files/patch-aa
@@ -0,0 +1,31 @@
+--- pico/search.c.old Tue Oct 5 01:49:41 1999
++++ pico/search.c Wed Feb 16 03:41:45 2000
+@@ -97,12 +97,15 @@
+ int bc;
+ int pc;
+ {
++ bc = (unsigned char)bc;
++ pc = (unsigned char)pc;
++
+ if ((curwp->w_bufp->b_mode & MDEXACT) == 0){
+- if (bc>='a' && bc<='z')
+- bc -= 0x20;
++ if (islower(bc))
++ bc = toupper(bc);
+
+- if (pc>='a' && pc<='z')
+- pc -= 0x20;
++ if (islower(pc))
++ pc = toupper(pc);
+ }
+
+ return(bc == pc);
+@@ -804,7 +807,7 @@
+ int maxlength; /* maximum chars in destination */
+
+ {
+- char c; /* current char to translate */
++ unsigned char c; /* current char to translate */
+
+ /* scan through the string */
+ while ((c = *srcstr++) != 0) {