changeset 6149:708782b54c86

readline: Add patch 002 from upstream. * src/readline-0-002.patch: Add upstream patch (reformatted to apply in MXE): ftp://ftp.gnu.org/pub/gnu/readline/readline-8.1-patches * dist-files.mk: Include new file in list.
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 05 Apr 2022 15:21:15 +0200
parents 911c098e5930
children 1c6561f824aa
files dist-files.mk src/readline-0-002-upstream.patch
diffstat 2 files changed, 39 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dist-files.mk	Wed Apr 06 10:44:43 2022 -0400
+++ b/dist-files.mk	Tue Apr 05 15:21:15 2022 +0200
@@ -652,6 +652,7 @@
   rapidjson-1-prettywriter.patch \
   rapidjson.mk \
   readline-0-001-upstream.patch \
+  readline-0-002-upstream.patch \
   readline-1-display.patch \
   readline-1-fixes.patch \
   readline-1-input.patch \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/readline-0-002-upstream.patch	Tue Apr 05 15:21:15 2022 +0200
@@ -0,0 +1,38 @@
+			   READLINE PATCH REPORT
+			   =====================
+
+Readline-Release: 8.1
+Patch-ID: readline81-002
+
+Bug-Reported-by:	Volodymyr Prodan <vovcat@gmail.com>
+Bug-Reference-ID:
+Bug-Reference-URL:	https://savannah.gnu.org/patch/?10076
+
+Bug-Description:
+
+There are some characters (e.g., cyrillic) that can't be displayed using
+certain single-byte encodings (e.g., cp1251) because the negative signed
+int is interpreted as EOF and not displayed.
+
+diff -urN readline-8.1/display.c.orig readline-8.1/display.c
+--- readline-8.1/display.c	2021-03-16 18:12:20.000000000 -0400
++++ readline-8.1/display.c	2021-06-07 16:53:08.000000000 -0400
+@@ -1598,7 +1598,7 @@
+   char cur_face;
+ 
+   for (cur_face = FACE_NORMAL, i = 0; i < n; i++)
+-    putc_face (str[i], face[i], &cur_face);
++    putc_face ((unsigned char) str[i], face[i], &cur_face);
+   putc_face (EOF, FACE_NORMAL, &cur_face);
+ }
+ 
+
+diff -ur a/patchlevel b/patchlevel
+--- a/patchlevel	2013-11-15 08:11:11.000000000 -0500
++++ b/patchlevel	2014-03-21 08:28:40.000000000 -0400
+@@ -1,3 +1,3 @@
+ # Do not edit -- exists only for use by patch
+ 
+-1
++2
+