1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

50080: add missing STOUC() in casemodify()

This commit is contained in:
Jun-ichi Takimoto 2022-04-20 21:01:08 +09:00
parent a270da2ada
commit baa12a413f
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2022-04-20 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 50080: Src/hist.c: add missing STOUC() in casemodify()
2022-04-19 Bart Schaefer <schaefer@zsh.org>
* unposted (cf. users/27656 (Tomasz Pala), users/27660):

View file

@ -2254,10 +2254,10 @@ casemodify(char *str, int how)
int c;
int mod = 0;
if (*str == Meta) {
c = str[1] ^ 32;
c = STOUC(str[1] ^ 32);
str += 2;
} else
c = *str++;
c = STOUC(*str++);
switch (how) {
case CASMOD_LOWER:
if (isupper(c)) {