Bug 16313 - grep -P fails with "grep: invalid UTF-8 byte sequence in input" when encountering binary files
Summary: grep -P fails with "grep: invalid UTF-8 byte sequence in input" when encounte...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: has_procedure advisory MGA5-64-OK MGA...
Keywords: PATCH, UPSTREAM, validated_update
Depends on:
Blocks:
 
Reported: 2015-07-07 01:21 CEST by Frédéric "LpSolit" Buclin
Modified: 2015-08-03 22:56 CEST (History)
7 users (show)

See Also:
Source RPM: grep-2.20-4.mga5
CVE:
Status comment:


Attachments

Description Frédéric "LpSolit" Buclin 2015-07-07 01:21:03 CEST
Probably the same issue as described here:

https://bugzilla.redhat.com/show_bug.cgi?id=1161832
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18266

In Mageia 5, "grep -P" now complains when it encounters a binary file, exiting with this error message:

  "grep: invalid UTF-8 byte sequence in input"

This was working fine in Mageia 4.
Manuel Hiebel 2015-07-28 20:18:05 CEST

Keywords: (none) => PATCH, UPSTREAM
CC: (none) => fundawang, luigiwalser, mageia, thierry.vignaud, tmb

Comment 1 David Walser 2015-07-29 00:02:16 CEST
Thanks for the report.  Please test the new grep package in core/updates_testing.

Advisory:
----------------------------------------

The grep package has been patched to fix several bugs in its PCRE mode.

References:
https://bugzilla.redhat.com/show_bug.cgi?id=1161832
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18266
----------------------------------------
Updated packages in core/updates_testing:
----------------------------------------
grep-2.20-4.1.mga5
grep-doc-2.20-4.1.mga5

from grep-2.20-4.1.mga5.src.rpm

Assignee: bugsquad => qa-bugs

Comment 2 Pana Sum 2015-07-30 01:43:29 CEST
Hi, I tested the new grep and it works under a Mageia 5 64 bits KDE installation. The procedure I followed is:

1) Test the old grep for the bug. The bug is presented
2) Install grep-2.20-4.1.mga5.x86_64.rpm
3) Run the same command as in 1. It works perfectly.

I also run some scripts that make use of grep and they worked well with the new grep.

CC: (none) => panasum

Comment 3 David Walser 2015-07-30 02:07:15 CEST
Thanks for testing!

Whiteboard: (none) => has_procedure MGA5-64-OK

Comment 4 Pana Sum 2015-07-31 02:38:23 CEST
And now I tested it in a 32 bits system using the same procedure and the bug is gone too.
Comment 5 David Walser 2015-07-31 02:55:02 CEST
Perfect, thanks again!

Whiteboard: has_procedure MGA5-64-OK => has_procedure MGA5-64-OK MGA5-32-OK

Comment 6 claire robinson 2015-08-03 18:51:48 CEST
Validating. Advisory uploaded.

Please push to 5 updates

Thanks

Keywords: (none) => validated_update
Whiteboard: has_procedure MGA5-64-OK MGA5-32-OK => has_procedure advisory MGA5-64-OK MGA5-32-OK
CC: (none) => sysadmin-bugs

Comment 7 Mageia Robot 2015-08-03 22:56:02 CEST
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGAA-2015-0078.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.