[Bug 1547466] Re: grep switches into binary mode while processing a text file
Stefan Bader
stefan.bader at canonical.com
Thu Feb 25 07:35:34 UTC 2016
Brian, did you set a non-UTF language?
apt-cache policy grep
grep:
Installed: 2.23-1
Candidate: 2.23-1
Version table:
*** 2.23-1 500
500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
LANG=C grep -v xxx grant_table.h
...
* table are identified by grant references. A grant reference is an
* integer, which indexes into the grant table. It acts as a
* capability which the grantee can use to perform operations on the
Binary file grant_table.h matches
** Changed in: grep (Ubuntu)
Status: Incomplete => New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grep in Ubuntu.
https://bugs.launchpad.net/bugs/1547466
Title:
grep switches into binary mode while processing a text file
Status in grep package in Ubuntu:
New
Bug description:
I noticed this staring to happen in Xenial about two days ago. When
running sbuild (or now the buildd, too), the build breaks when trying
to compile a generated file. I traced the problem down to grep
suddenly acting weird. When not having any language set (or a non-UTF8
mode) it will start printing some lines of a source file and then
suddenly end that by printing "Binary file ... matches".
With the attached file, the difference can be observed (running
Xenial):
LANG=C grep -v xxx grant_table.h
and
LANG=C.UTF-8 grep -v xxx grant_table.h
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grep/+bug/1547466/+subscriptions
More information about the foundations-bugs
mailing list