summaryrefslogtreecommitdiff
path: root/t/t4100/t-apply-7.expect
diff options
context:
space:
mode:
authorLibravatar Anthony Ramine <n.oxyde@gmail.com>2013-05-30 12:19:10 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-06-02 14:13:05 -0700
commitb79c0c3755f3694a3c7ecd3cad18bda011283db7 (patch)
tree70ad6297951c02a5a2d8ae5a9f1fd06beec704c0 /t/t4100/t-apply-7.expect
parentGit 1.8.3 (diff)
downloadtgif-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/t4100/t-apply-7.expect')
0 files changed, 0 insertions, 0 deletions