From: Chet Ramey Date: Tue, 4 Jan 2022 22:01:33 +0000 (-0500) Subject: Bash-5.1 patch 15: fix readline display of some characters > 128 in certain single... X-Git-Tag: bash-5.2-alpha~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=18ad612ea80ba978ae8271800814737e224a4baf;p=thirdparty%2Fbash.git Bash-5.1 patch 15: fix readline display of some characters > 128 in certain single-byte encodings --- diff --git a/lib/readline/display.c b/lib/readline/display.c index 38b3d0e76..f5d32945c 100644 --- a/lib/readline/display.c +++ b/lib/readline/display.c @@ -1598,7 +1598,7 @@ puts_face (const char *str, const char *face, int n) 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 --git a/patchlevel.h b/patchlevel.h index f2e80d19c..252e08198 100644 --- a/patchlevel.h +++ b/patchlevel.h @@ -25,6 +25,6 @@ regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh looks for to find the patch level (for the sccs version string). */ -#define PATCHLEVEL 14 +#define PATCHLEVEL 15 #endif /* _PATCHLEVEL_H_ */