pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mail/isync
Module Name: pkgsrc
Committed By: ktnb
Date: Thu May 14 14:38:05 UTC 2026
Modified Files:
pkgsrc/mail/isync: distinfo
Added Files:
pkgsrc/mail/isync/patches: patch-src_util.c
Log Message:
isync: fixed UTF-8 folders bug
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 pkgsrc/mail/isync/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/isync/patches/patch-src_util.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mail/isync/distinfo
diff -u pkgsrc/mail/isync/distinfo:1.27 pkgsrc/mail/isync/distinfo:1.28
--- pkgsrc/mail/isync/distinfo:1.27 Thu May 14 13:15:13 2026
+++ pkgsrc/mail/isync/distinfo Thu May 14 14:38:05 2026
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.27 2026/05/14 13:15:13 ktnb Exp $
+$NetBSD: distinfo,v 1.28 2026/05/14 14:38:05 ktnb Exp $
BLAKE2s (isync-1.5.1.tar.gz) = 4376d497aad83715fa952fbb333af8f686badf0109f4935ecb1aa908e6111ea6
SHA512 (isync-1.5.1.tar.gz) = 3ccc37b9f902841e244acb16d574991062090770b5d8efb0079cee507f4352752e248f28cb6da63d21987f5c616e36d0dc6b8a7b20a89bcf805cd37429473d02
Size (isync-1.5.1.tar.gz) = 324364 bytes
SHA1 (patch-src_Makefile.in) = 7625c42f06bb3a9d5ce612593b8c8138f8b3603f
SHA1 (patch-src_config.c) = 3c667a67dc8f5d460928af543b191353f1eda8d4
+SHA1 (patch-src_util.c) = caed7eba69e019e52d329c945c24b7ba1fe5594c
Added files:
Index: pkgsrc/mail/isync/patches/patch-src_util.c
diff -u /dev/null pkgsrc/mail/isync/patches/patch-src_util.c:1.1
--- /dev/null Thu May 14 14:38:05 2026
+++ pkgsrc/mail/isync/patches/patch-src_util.c Thu May 14 14:38:05 2026
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_util.c,v 1.1 2026/05/14 14:38:05 ktnb Exp $
+
+Don't crash on 3 byte UTF-8 folder names
+
+--- src/util.c.orig 2026-05-14 14:26:43.676943197 +0000
++++ src/util.c
+@@ -477,7 +477,7 @@ to_upper( char *str, uint len )
+ to_upper( char *str, uint len )
+ {
+ for (uint i = 0; i < len; i++)
+- str[i] = toupper( str[i] );
++ str[i] = toupper( (unsigned char)str[i] );
+ }
+
+ int
+@@ -492,7 +492,7 @@ equals_upper_impl( const char *str, const char *cmp, u
+ equals_upper_impl( const char *str, const char *cmp, uint cmpl )
+ {
+ for (uint i = 0; i < cmpl; i++)
+- if (toupper( str[i] ) != cmp[i])
++ if (toupper( (unsigned char)str[i] ) != cmp[i])
+ return 0;
+ return 1;
+ }
Home |
Main Index |
Thread Index |
Old Index