bug-grep
[Top][All Lists]
Advanced

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

Re: grep 2.5.1: NUL byte doesn't match a complemented character class


From: Jim Meyering
Subject: Re: grep 2.5.1: NUL byte doesn't match a complemented character class
Date: Thu, 23 Aug 2007 14:41:33 +0200

Joe Wells <address@hidden> wrote:
> I now can see what the difference between your environment and mine
> must be.  I'm also using this environment variable setting:
>
>   LC_CTYPE=en_US.UTF-8
>
> When I change this (just for the “grep” process) to

On some systems, the locale name is spelled slightly differently:
[get the proper spelling from the output of "locale -a"]

RHEL5 has the bug [rpm -q grep -> grep-2.5.1-52.2]:

  $ printf '\0x' | LC_CTYPE=en_US.UTF-8 grep '[^x]x'
  [Exit 1]

Debian unstable seems not to have a problem:

  $ printf '\0x' | LC_CTYPE=en_US.utf8 grep '[^x]x'
  Binary file (standard input) matches

I've Cc'd address@hidden, since that's the preferred bug-reporting
address.

> I suppose the problem might be in glibc?  Or perhaps there is a bug in
> the locale data files?
>
> (By the way, if any character in the input is being discarded for some
> reason (e.g., invalid UTF-8 format), can I please ask that there
> should be an error message generated by grep for this?  Otherwise
> problems will be too difficult to track down.)
>
> By the way, I am using Ubuntu 6.06 LTS (“Dapper Drake”) with all

I would consider upgrading.

>> [resending just to you, because your mail server blocked my first reply
>>
>>   <address@hidden>: host izanami.macs.hw.ac.uk[137.195.13.6] said: 550
>>       82.230.74.64 is listed in rbl-plus.mail-abuse.ja.net (in reply to RCPT 
>> TO
>>       command)
>>       ]
>
> Sorry about that!  I don't know why that RBL lists that IP address
> (mx.meyering.net).  I'm glad I got your second e-mail.

I suggest you tell the folks who administer that mail server
that they are blocking non-spam mail from a static IP address that
has been completely spam-free (and not an open relay, etc.) for
more than three years.  In this case, I took the trouble to route
mail for your domain through a different outbound server, but most
correspondents getting such a bounce would not do that.




reply via email to

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