6c13fb9
From 18ad612ea80ba978ae8271800814737e224a4baf Mon Sep 17 00:00:00 2001
6c13fb9
From: Chet Ramey <chet.ramey@case.edu>
6c13fb9
Date: Tue, 4 Jan 2022 17:01:33 -0500
6c13fb9
Subject: [PATCH] Bash-5.1 patch 15: fix readline display of some characters >
6c13fb9
 128 in certain single-byte encodings
6c13fb9
6c13fb9
---
6c13fb9
 lib/readline/display.c | 2 +-
6c13fb9
 patchlevel.h           | 2 +-
6c13fb9
 2 files changed, 2 insertions(+), 2 deletions(-)
6c13fb9
6c13fb9
diff --git a/lib/readline/display.c b/lib/readline/display.c
6c13fb9
index 38b3d0e7..f5d32945 100644
6c13fb9
--- a/lib/readline/display.c
6c13fb9
+++ b/lib/readline/display.c
6c13fb9
@@ -1598,7 +1598,7 @@ puts_face (const char *str, const char *face, int n)
6c13fb9
   char cur_face;
6c13fb9
 
6c13fb9
   for (cur_face = FACE_NORMAL, i = 0; i < n; i++)
6c13fb9
-    putc_face (str[i], face[i], &cur_face);
6c13fb9
+    putc_face ((unsigned char) str[i], face[i], &cur_face);
6c13fb9
   putc_face (EOF, FACE_NORMAL, &cur_face);
6c13fb9
 }
6c13fb9
 
6c13fb9
diff --git a/patchlevel.h b/patchlevel.h
6c13fb9
index f2e80d19..252e0819 100644
6c13fb9
--- a/patchlevel.h
6c13fb9
+++ b/patchlevel.h
6c13fb9
@@ -25,6 +25,6 @@
6c13fb9
    regexp `^#define[ 	]*PATCHLEVEL', since that's what support/mkversion.sh
6c13fb9
    looks for to find the patch level (for the sccs version string). */
6c13fb9
 
6c13fb9
-#define PATCHLEVEL 14
6c13fb9
+#define PATCHLEVEL 15
6c13fb9
 
6c13fb9
 #endif /* _PATCHLEVEL_H_ */
6c13fb9
-- 
6c13fb9
2.31.1
6c13fb9