Package: grep Version: 2.5.4-4 In some situations, grep (and egrep) return incorrect results when the -w option is used. Example:
$ cat bug /ABC/ x /ABCD/ /ABCD/ $ grep -w ABC bug /ABC/ /ABCD/ $ LC_CTYPE=C grep -w ABC bug /ABC/ $ GREP_USE_DFA=1 grep -w ABC bug /ABC/ The incorrect second match only occurs when the preceding line is exactly 1 character long. With LC_CTYPE=C or with GREP_USE_DFA=1 the problem disappears. Reverting 65-dfa-optional.patch also fixes the problem. My locale settings are: LANG= LC_CTYPE=en_US.utf8 LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE=POSIX LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= -- Dick -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org