mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-30 05:40:58 +01:00
22529: multibyte conversion in math expressions
This commit is contained in:
parent
92737d2c42
commit
4cd7b957f3
5 changed files with 48 additions and 9 deletions
11
Src/utils.c
11
Src/utils.c
|
|
@ -4410,6 +4410,17 @@ getkeystring(char *s, int *len, int fromwhere, int *misc)
|
|||
(fromwhere == 2 || fromwhere == 5 || fromwhere == 6)) {
|
||||
control = 1;
|
||||
continue;
|
||||
#ifdef MULTIBYTE_SUPPORT
|
||||
} else if (fromwhere == 6 && isset(MULTIBYTE) && STOUC(*s) > 127) {
|
||||
wint_t wc;
|
||||
int len;
|
||||
len = mb_metacharlenconv(s, &wc);
|
||||
if (wc != WEOF) {
|
||||
*misc = (int)wc;
|
||||
return s + len;
|
||||
}
|
||||
#endif
|
||||
|
||||
} else if (*s == Meta)
|
||||
*t++ = *++s ^ 32;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue