diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2013-05-30 12:19:10 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-02 14:13:05 -0700 |
commit | b79c0c3755f3694a3c7ecd3cad18bda011283db7 (patch) | |
tree | 70ad6297951c02a5a2d8ae5a9f1fd06beec704c0 /t/t5509-fetch-push-namespaces.sh | |
parent | Git 1.8.3 (diff) | |
download | tgif-b79c0c3755f3694a3c7ecd3cad18bda011283db7.tar.xz |
wildmatch: properly fold case everywhere
Case folding is not done correctly when matching against the [:upper:]
character class and uppercased character ranges (e.g. A-Z).
Specifically, an uppercase letter fails to match against any of them
when case folding is requested because plain characters in the pattern
and the whole string are preemptively lowercased to handle the base case
fast.
That optimization is kept and ISLOWER() is used in the [:upper:] case
when case folding is requested, while matching against a character range
is retried with toupper() if the character was lowercase, as the bounds
of the range itself cannot be modified (in a case-insensitive context,
[A-_] is not equivalent to [a-_]).
Signed-off-by: Anthony Ramine <n.oxyde@gmail.com>
Reviewed-by: Duy Nguyen <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5509-fetch-push-namespaces.sh')
0 files changed, 0 insertions, 0 deletions