readline/readline-8.1-patch-2.patch
2022-01-17 02:18:54 +01:00

37 lines
935 B
Diff

From 5263c0d88064fda96292335d12eec1733f91cdc9 Mon Sep 17 00:00:00 2001
From: Chet Ramey <chet.ramey@case.edu>
Date: Wed, 5 Jan 2022 11:09:58 -0500
Subject: [PATCH] Readline-8.1 patch 2: fix redisplay of some characters > 128
in certain single-byte encodings
---
display.c | 2 +-
patchlevel | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/display.c b/display.c
index 38b3d0e..f5d3294 100644
--- a/display.c
+++ b/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 b/patchlevel
index fdf4740..7cbda82 100644
--- a/patchlevel
+++ b/patchlevel
@@ -1,3 +1,3 @@
# Do not edit -- exists only for use by patch
-1
+2
--
2.31.1