GNU bug report logs - #19985
active locale impacts binary data detection?

Previous Next

Package: grep;

Reported by: Mike Frysinger <vapier <at> gentoo.org>

Date: Tue, 3 Mar 2015 02:01:01 UTC

Severity: normal

Merged with 19230, 20526, 21558

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mike Frysinger <vapier <at> gentoo.org>
To: bug-grep <at> gnu.org
Cc: proteuss <at> sdf.lonestar.org
Subject: active locale impacts binary data detection?
Date: Mon, 2 Mar 2015 20:59:51 -0500
[Message part 1 (text/plain, inline)]
i've got some users reporting diff behavior between 2.20 and 2.21.  the example 
file is attached and has mixed encoding.  i think the new behavior is correct, 
but want to make sure it's expected, or that the maintainers don't have 
different ideas here.

with 2.20:
$ LC_ALL=en_US.UTF8 grep 8 test-mixed
  852  cd  ΘΕΜΑΤΑ\ ΠΑΝΕΛΛΗΝΙΩΝ/

with 2.21:
$ LC_ALL=en_US.UTF8 grep 8 test-mixed
Binary file test-mixed matches
$ LC_ALL=en_US.UTF8 grep -a 8 test-mixed
  852  cd  ΘΕΜΑΤΑ\ ΠΑΝΕΛΛΗΝΙΩΝ/
$ LC_ALL=C grep 8 test-mixed
  852  cd  ΘΕΜΑΤΑ\ ΠΑΝΕΛΛΗΝΙΩΝ/
-mike
[test-mixed.gz (application/octet-stream, attachment)]
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 9 years and 139 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.