bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16911: [PATCH] grep: fix bugs with -i and titlecase


From: Jim Meyering
Subject: bug#16911: [PATCH] grep: fix bugs with -i and titlecase
Date: Sat, 1 Mar 2014 16:49:06 -0800

Thanks for those patches.
I'm seeing that new test fail on OS/X 10.8.5 and don't have
time to pursue it right away, so in case someone else does, ...

[using the same "in" file created by the test]
$ src/grep -Ei '(Lj)\1' in
LjLj
$ src/grep -Ei '(Lj)' in
ljlj
LjLj
LJLJ
$ src/grep -Ei '(Lj)\1' in
LjLj
$ src/grep -Ei '(lj)\1' in
ljlj
LJLJ
$ src/grep -Ei '(LJ)\1' in
ljlj
LJLJ

Here's the relevant part of the test-suite.log file:

+ LC_ALL=en_US.UTF-8
+ export LC_ALL
+ fail=0
+ LJ='\307\207'
+ Lj='\307\210'
+ lj='\307\211'
++ printf '\307\210\n'
+ pattern=$'<C7>\210'
+ printf '\307\211\307\211\n\307\210\307\210\n\307\207\307\207\n'
+ grep -i $'<C7>\210' in
+ compare in out
+ compare_dev_null_ in out
+ test 2 = 2
+ test xin = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ in out
+ diff -u in out
+ pattern='(Lj)\1'
+ grep -Ei '(Lj)\1' in
+ compare in out
+ compare_dev_null_ in out
+ test 2 = 2
+ test xin = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ in out
+ diff -u in out
--- in  2014-03-01 16:22:38.000000000 -0800
+++ out 2014-03-01 16:22:38.000000000 -0800
@@ -1,3 +1 @@
-ljlj
 LjLj
-LJLJ
+ fail=1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]