Hi Deri,

> > Does your grep behave like this?  I used a UTF-8 terminal.
...
> Your example which produces the "Binary file" message, produces this:-
>
> $ LC_ALL=en_GB.utf8 grep y <<<$'x\xa0\xa0y'
> x��y

I don't know how all those other commands did.  :-)
What's the output of

    dpkg-query -W grep
    grep --version
    od -tx1z <<<$'x\xa0\xa0y'
    LC_ALL=en_GB.utf8 grep z <<<$'x\xa0\xa0y'
    LC_ALL=en_GB.utf8 grep z <<<$'x\xa0\xa0y\nz'
    LC_ALL=en_GB.utf8 grep y <<<$'x\xa0\xa0y'
    LC_ALL=en_GB.iso88591 grep y <<<$'x\xa0\xa0y'
    LC_ALL=C grep y <<<$'x\xa0\xa0y'

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

Reply via email to