about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2022-09-27 15:20:24 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2022-09-27 15:20:24 +0900
commit33938ad489e6f3c280d431f92920db5a00458534 (patch)
treed24636ac64410b3b2135bd53391ab03a27a6e1c1 /Src/utils.c
parent1e4c7bcae5daec29cbf85968e013576d665c3816 (diff)
downloadzsh-33938ad489e6f3c280d431f92920db5a00458534.tar.gz
zsh-33938ad489e6f3c280d431f92920db5a00458534.tar.xz
zsh-33938ad489e6f3c280d431f92920db5a00458534.zip
50668: treat 8bit chars correctly when multibyte is unset
The problem was found in character range, but may have existed in other
occasions
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 62bd3e602..edf5d3df7 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -5519,7 +5519,7 @@ mb_metacharlenconv(const char *s, wint_t *wcp)
     if (!isset(MULTIBYTE) || STOUC(*s) <= 0x7f) {
 	/* treat as single byte, possibly metafied */
 	if (wcp)
-	    *wcp = (wint_t)(*s == Meta ? s[1] ^ 32 : *s);
+	    *wcp = (wint_t)STOUC(*s == Meta ? s[1] ^ 32 : *s);
 	return 1 + (*s == Meta);
     }
     /*