:: Re: [DNG] grep handles ISO-8859 enc…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Noel Torres
Ημερομηνία:  
Προς: dng
Αντικείμενο: Re: [DNG] grep handles ISO-8859 encoded text file as binary file.

Hughe Chung <janpenguin@???> escribió:

> Hi,
>
> I got to use -a option to search words on C code files.
>
>
> $ grep tesselate dome_math.c
> Binary file dome_math.c matches


Is this only due to encoding, or may be due to a DOS/Unix difference?

If I were to bet, I would say that the file dome_math.c is not
correctly formatted, or has an incorrect BOM at start, or so.

Create copies of two of these files (one of each class) with just the
first three lines, and try again. Paste the files to the list if still
happening.

Regards

Noel
er Envite