pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

emacs-git: fix a ctype(3) problem



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Mon Sep 16 23:27:18 2024 +0200
Changeset:	94b40869322f471bda0fccbecad5537a3fc21f10

Modified Files:
	emacs-git/distinfo
Added Files:
	emacs-git/patches/patch-src_fns.c

Log Message:
emacs-git: fix a ctype(3) problem

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=94b40869322f471bda0fccbecad5537a3fc21f10

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 emacs-git/distinfo                |  1 +
 emacs-git/patches/patch-src_fns.c | 16 ++++++++++++++++
 2 files changed, 17 insertions(+)

diffs:
diff --git a/emacs-git/distinfo b/emacs-git/distinfo
index 039d4f3fe7..77b56e7bfd 100644
--- a/emacs-git/distinfo
+++ b/emacs-git/distinfo
@@ -1,3 +1,4 @@
 $NetBSD$
 
 SHA1 (patch-configure.ac) = fdf28fb6247c1f7bbdf2002e3af1bb6ec654c4a2
+SHA1 (patch-src_fns.c) = af2921422ec11702393ba91d8628fa9b663867ed
diff --git a/emacs-git/patches/patch-src_fns.c b/emacs-git/patches/patch-src_fns.c
new file mode 100644
index 0000000000..6e6a49ece6
--- /dev/null
+++ b/emacs-git/patches/patch-src_fns.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Fix ctype(3) usage.
+https://debbugs.gnu.org/cgi/bugreport.cgi?bug=73307
+
+--- src/fns.c.orig	2024-09-16 21:11:40.908684144 +0000
++++ src/fns.c
+@@ -3579,7 +3579,7 @@ by a mouse, or by some window-system ges
+   {
+     char *s = SSDATA (prompt);
+     ptrdiff_t len = strlen (s);
+-    if ((len > 0) && !isspace (s[len - 1]))
++    if ((len > 0) && !isspace ((unsigned char)s[len - 1]))
+       prompt = CALLN (Fconcat, prompt, build_string (" "));
+   }
+   prompt = CALLN (Fconcat, prompt, Vyes_or_no_prompt);


Home | Main Index | Thread Index | Old Index