Subject: Re: Bug in grep -P --color



> * On Friday 2005-04-22 at 17:33:18 +0200, Claudio
> Fontana wrote:
> >
> > --- Behdad Esfahbod <behdad@xxxxxxxxxxxxxx> ha
> > scritto:
> > > Hi
> > > I think I have spotted a nasty bug somewhere in
> the
> > > perl-regexp
> > > engine, with UTF-8 character classes and --color
> > > output!
> >
> > I tried to set up things to verify the problem but
> I
> > am not able to see arabic fonts.
>
> Remember, you can always run /usr/bin/script in
> any terminal to capture the interaction (even if
> characters don't show up properly), then view the
> recorded file using something like "hexdump -C"
> to see all the actual octets that were output.

Thanks Charles, did not know that. This script(1) is a
really nice tool. It solved the problem here.

> > I installed bicon
>
> Funny what comes up on the first page when you
> Google for this. Coming to Glasgow in 2006!

:) I wonder if GeEkgiRL will be there again.

Of course I meant bicon (bidirectional console)
project here:

http://sourceforge.net/project/showfiles.php?group_id=34866&package_id=113748

Now for Behdad's utf8 problem:

1) checkout latest grep from cvs
2) apply this unified p1 patch I have attached
3) fetch latest pcre library
4) compile and install pcre library with utf8 support
(see ./configure --help)
5) compile grep
6) test if things work fine

Bye,

Claudio




___________________________________ <...

br> Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam,
Giochi, Rubrica? Scaricalo ora!
http://it.messenger.yahoo.it

Attachment: grep-P-utf8.Naur.p1.patch
Description: grep-P-utf8.Naur.p1.patch



Privacy