bug-grep
[Top][All Lists]
Advanced

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

[bug-grep] Re: Bug in grep -P --color


From: Behdad Esfahbod
Subject: [bug-grep] Re: Bug in grep -P --color
Date: Fri, 22 Apr 2005 11:41:54 -0400 (EDT)

On Fri, 22 Apr 2005, Claudio Fontana wrote:

> Hello,

Hi,

>  --- Behdad Esfahbod <address@hidden> 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.
>
> Here is what I tried:
>
> I have these 'arabic' fonts already installed:
> /usr/X11R6/lib/X11/fonts/misc/cuarabic12.pcf.gz
> /usr/X11R6/lib/X11/fonts/misc/cu-arabic12.pcf.gz
> /usr/X11R6/lib/X11/fonts/misc/arabic24.pcf.gz

What happens if you run gnome-terminal or xterm -u8 and run the
script?  Do you see boxes only or something that looks like
Arabic script?

> I installed bicon, ran xterm -lc setting
> LANG=fa_IR.utf8, then ran bicon.

Heh, that's my package.  You don't need to run bicon.  Bicon does
bidirectional reordering and contextual joining.  Not needed to
verify the bug.  Without bicon you simply see the Arabic left to
right and not joind.  I've attached an screenshot showing the
bug.

> If you can help me with precise instructions as to set
> up things to see those characters correctly, I can try
> to be of some help.

Thanks.  Like I said, try simply running gnome-terminal or xterm
-u8.  About font, humm, ok, the 10x20 X11 font has good Arabic
glyphs, but many distros strip it off.  This one has them:

http://cvsweb.xfree86.org/cvsweb/xc/fonts/bdf/misc/10x20.bdf

As long as the bug goes, simply redirecting the output to a file
shows the difference too.

> CLaudio

--behdad
http://behdad.org/

Attachment: grep-bug.png
Description: PNG image


reply via email to

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