bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19985: active locale impacts binary data detection?


From: Paul Eggert
Subject: bug#19985: active locale impacts binary data detection?
Date: Mon, 02 Mar 2015 18:31:27 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

The new behavior is expected, and this is mentioned in the NEWS file:

  If a file contains data improperly encoded for the current locale,
  and this is discovered before any of the file's contents are output,
  grep now treats the file as binary.

In some cases one can get the old behavior with 'grep -a'.

This is not the first time the problem has been reported.  Please see:

http://bugs.gnu.org/19230

If the problem occurs often enough, perhaps we should change grep's behavior. For example, perhaps grep should fall back on the C locale if the first part of a file contains an encoding error but no NUL bytes.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]