Package: grep
Version: 2.5.3~dfsg-5
Followup-For: Bug #446270

Hi,

on the weekend I discovered this bug, too, and found the following
minimal test case:

echo -e '\344RC' > 0.bin
cat > 1.txt << EOF
RC
is not
ARCH
EOF

Testing this with

    LC_CTYPE=POSIX grep -w RC 0.bin 1.txt

yields the correct result

    0.bin:�RC
    1.txt:RC

while

    LC_CTYPE=en_US.UTF-8 grep -w RC 0.bin 1.txt

produces the invalid 

    0.bin:�RC
    1.txt:RC
    1.txt:ARCH


Andreas

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable'), (130, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grep depends on:
ii  libc6                         2.7-10     GNU C Library: Shared libraries

grep recommends no packages.

-- no debconf information



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to