Package: ispell
Version: 3.4.00-4
Severity: important

Dear Maintainer,

the behavior of grep and egrep has changed from 2.22-1 to 2.23-1.
The current version of grep returns "Binary file <file> matches", if
the given file contains a non 7bit ascii character, if run with
LC_ALL=C.

Setting LC_ALL=de_DE (which uses ISO-8859-1 charset), grep works as
expected.

munchlist calls egrep, but the script has LC_ALL=C hard coded in it,
which results in unexpected output.

I'm not fully sure, what the correct solution for this problem is, as
a workaround setting GREP_OPTIONS="--binary-files=text" helps but
gives a depreciation warning.

So as a quick workaround it would be a good idea to replace all calls
of "egrep" by "egrep -a".

All this affects the building of igerman98 with grep 2.23-1, which
runs into this problems multiple times (partly in its own Makefile,
which also uses grep and fails, partly in munchlist calls).

For information, here's a part of the NEWS section of grep 2.23:

  Binary files are now less likely to generate diagnostics and more
  likely to yield text matches.  grep now reports "Binary file FOO
  matches" and suppresses further output instead of outputting a line
  containing an encoding error; hence grep can now report matching text
  before a later binary match.  Formerly, grep reported FOO to be
  binary when it found an encoding error in FOO before generating
  output for FOO, which meant it never reported both matching text and
  matching binary data; this was less useful for searching text
  containing encoding errors in non-matching lines.
  [bug introduced in grep-2.21]

This also refers to https://bugs.debian.org/799956

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages ispell depends on:
ii  libc6      2.21-9
ii  libtinfo5  6.0+20160213-1
ii  grep       2.23-1            (no dependency, but relevant)

Greetings
Roland

Attachment: signature.asc
Description: Digital signature

Reply via email to