control: tags -1 + confirmed upstream
control: retitle -1 grep treats ISO-8859 text files as binary
control: clone -1 -2
control: forwarded -1 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19230
control: retitle -2 grep unable to find diacritical characters in ISO-8859 text 
files

El 02/10/15 a las 09:58, Alberto Luaces escribió:
> Package: grep
> Version: 2.21-2
> Followup-For: Bug #799956
> 
> I think the attached file will do as a minimal test case.
> 

>       struct cara* lcaras; //array de caras, habrá que usar reserva dinamica 
> de memoria.

% file /tmp/q.h 
/tmp/q.h: ISO-8859 text

% grep c /tmp/q.h
Coincidencia en el fichero binario /tmp/q.h

% grep -a c /tmp/q.h
    struct cara* lcaras; //array de caras, habr� que usar reserva dinamica de 
memoria.

% grep á /tmp/q.h 

% grep -a á /tmp/q.h

The problem is related to ISO8859 files. It has already been
reported to upstream that grep treats ISO8859 files as binary:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19230
A partial workaround is to treat binary files as text, using the -a
option.

However, since grep doesn't find the diacritical characters, an
additional bug is needed.

Thanks for your report,

Santiago

Attachment: signature.asc
Description: Digital signature

Reply via email to