1
0
Fork 0
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:
Peter Stephenson 2006-06-30 09:41:34 +00:00
parent 92737d2c42
commit 4cd7b957f3
5 changed files with 48 additions and 9 deletions

View file

@ -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