[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-grep] [patch #3962] More tests for foad1.sh
From: |
Charles Levert |
Subject: |
[bug-grep] [patch #3962] More tests for foad1.sh |
Date: |
Fri, 29 Apr 2005 11:40:08 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 |
Update of patch #3962 (project grep):
Status: None => Done
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #3:
Applied as CVS revision 1.7 of "tests/foad1.sh".
For posterity, given the input and pattern strings, and the --ignore-case
flag, POSIX implies that:
- this logic is wrong: if (lc(input_wchar) == lc(pattern_wchar)) ...
- this logic is wrong: if (uc(input_wchar) == uc(pattern_wchar)) ...
- this logic is right (but could be optimized): if (input_wchar ==
pattern_wchar || lc(input_wchar) == pattern_wchar || uc(input_wchar) ==
pattern_wchar) ...
Study the new tests to understand how this does make a difference.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?func=detailitem&item_id=3962>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/