1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-21 07:26:05 +02:00

19269: 8-bit characters in character classes

This commit is contained in:
Peter Stephenson 2003-12-03 10:54:36 +00:00
parent b456768681
commit 7d672455bb
4 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2003-12-03 Peter Stephenson <pws@csr.com>
* 19269: Src/pattern.c, Misc/globtests, Test/D02glob.ztst:
8-bit characters didn't work in character classes where
chars were signed.
2003-11-28 Doug Kearns <djkea2@mugca.its.monash.edu.au>
* unposted: Completion/Unix/Command/_elinks: update for version 0.4.3

View File

@ -179,5 +179,6 @@ f atest/path *((#s)|/)test((#e)|/)*
f path/testy *((#s)|/)test((#e)|/)*
f path/testy/ohyes *((#s)|/)test((#e)|/)*
f path/atest/ohyes *((#s)|/)test((#e)|/)*
t bj<62>n *[裝<>トヨ]*
EOT
print "$failed tests failed."

View File

@ -2265,7 +2265,7 @@ patmatchrange(char *range, int ch)
DPUTS(1, "BUG: unknown metacharacter in range.");
break;
}
} else if (*range == ch)
} else if (STOUC(*range) == ch)
return 1;
}
return 0;

View File

@ -174,6 +174,7 @@
>1: [[ path/testy = *((#s)|/)test((#e)|/)* ]]
>1: [[ path/testy/ohyes = *((#s)|/)test((#e)|/)* ]]
>1: [[ path/atest/ohyes = *((#s)|/)test((#e)|/)* ]]
>0: [[ bj<62>n = *[裝<>トヨ]* ]]
>0 tests failed.
globtest globtests.ksh