Re: [DNG] grep handles ISO-8859 encoded text file as binary file.

2016-04-28 Thread Irrwahn
On Thu, 28 Apr 2016 14:29:41 -0400, Hendrik Boom wrote: > On Thu, Apr 28, 2016 at 07:49:58PM +0200, Irrwahn wrote: >> On Thu, 28 Apr 2016 13:16:53 -0400, Hendrik Boom wrote: >>> On Thu, Apr 28, 2016 at 06:53:35AM +, Noel Torres wrote: Hughe Chung escribió: >> [...] > $ grep tesselate

Re: [DNG] grep handles ISO-8859 encoded text file as binary file.

2016-04-28 Thread Hendrik Boom
On Thu, Apr 28, 2016 at 07:49:58PM +0200, Irrwahn wrote: > On Thu, 28 Apr 2016 13:16:53 -0400, Hendrik Boom wrote: > > On Thu, Apr 28, 2016 at 06:53:35AM +, Noel Torres wrote: > >> Hughe Chung escribió: > [...] > >>> $ grep tesselate dome_math.c > >>> Binary file dome_math.c matches > [...] >

Re: [DNG] grep handles ISO-8859 encoded text file as binary file.

2016-04-28 Thread Irrwahn
On Thu, 28 Apr 2016 13:16:53 -0400, Hendrik Boom wrote: > On Thu, Apr 28, 2016 at 06:53:35AM +, Noel Torres wrote: >> Hughe Chung escribió: [...] >>> $ grep tesselate dome_math.c >>> Binary file dome_math.c matches [...] >> If I were to bet, I would say that the file dome_math.c is not >> corr

Re: [DNG] grep handles ISO-8859 encoded text file as binary file.

2016-04-28 Thread Hendrik Boom
On Thu, Apr 28, 2016 at 06:53:35AM +, Noel Torres wrote: > > Hughe Chung 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

Re: [DNG] grep handles ISO-8859 encoded text file as binary file.

2016-04-27 Thread Noel Torres
Hughe Chung 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

[DNG] grep handles ISO-8859 encoded text file as binary file.

2016-04-27 Thread Hughe Chung
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 $ file *.c 3ds_utils.c: C source, ISO-8859 text dome_3ds.c: C source, ASCII text dome.c: C source, ASCII text dome_cover.c: C source, ASCII text dome_file.c: C source, ASCII