bug-grep
[Top][All Lists]
Advanced

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

Re: [bug-grep] Re: grep: -i option not working i cronjobs


From: Tim Waugh
Subject: Re: [bug-grep] Re: grep: -i option not working i cronjobs
Date: Mon, 15 Nov 2004 09:48:05 +0000
User-agent: Mutt/1.4.1i

On Sun, Nov 14, 2004 at 02:09:22PM +0200, Aharon Robbins wrote:

> I don't know if there would be problems or if there wouldn't be, but
> the code doing this can't be naive and just do
> 
>       if (ignoring case) {
>               buffer[i++] = '[';
>               buffer[i++] = c;
>               buffer[i++] = toupper(c);
>               buffer[i++] = ']';
>       }
> 
> It has to be somewhat smarter. 

Yes, I should hope it would be!

> Also, UTF-8 isn't the only multibyte
> encoding that GLIBC and thus GNU can handle...

I was giving an example of a multibyte encoding in which mixed length
characters in a class works.

Tim.
*/

Attachment: pgpMjUtZFL16v.pgp
Description: PGP signature


reply via email to

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