[Top][All Lists]

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

Bug in grep -P --color

From: Behdad Esfahbod
Subject: Bug in grep -P --color
Date: Fri, 22 Apr 2005 09:12:08 -0400 (EDT)


I think I have spotted a nasty bug somewhere in the perl-regexp
engine, with UTF-8 character classes and --color output!

Please run the attached shell script, the output from -G, -E, and
-P should all be the same, but in two cases the -P generates
garbage (at least on my setup.)  The test data is using Arabic
script.  A UTF-8 enabled terminal emulator and at least one
Arabic font is enough to confirm the bug, no need to be able to
read Arabic.

address@hidden search]$ grep --version
grep (GNU grep) 2.5.1

It's a Fedora Core 3 updated machine.


Attachment: grep-bug
Description: Text document

reply via email to

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