Re: Charsets v grep
In article <qvgVX-M3-1@gated-at.bofh.it> R. Clayton <rclayton@monmouth.edu> wrote:
> and I've been getting a lot of this lately:
> $ grep ^Subject: cbtm
> Binary file cbtm matches
> whereas before (a month or so ago) I used to get actual matches on std-out.
> It's easy enough to work around like so
> $ sed -n -e '/^Subject:/p' < cbtm
> Subject: Re: PTFACULTY: FTFACULTY: When saying "Nous sommes Paris" is not
> Subject: FTFACULTY: When saying "Nous sommes Paris" is not enough
> Subject: Lowered Reserve Prices
> but I'd like to grep working like it used to. What is the way for me to get
> grep back? Some other points that may be useful:
> $ file cbtm
> cbtm: ISO-8859 text, with very long lines
> $ ba env | grep -i utf
> LANG=en_US.UTF-8
> XTERM_LOCALE=en_US.UTF-8
Trying "grep -a ..." might work. Or "LANG=C grep ...".
--
MartinS
Reply to: