>Number: 184733 >Category: bin >Synopsis: bsdgrep doesn't match a regular expression containing "|" >against UTF-16 file >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 12 20:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Toomas Aas >Release: 9.2-STABLE >Organization: >Environment: FreeBSD tu-134.lan 9.2-STABLE FreeBSD 9.2-STABLE #0 r259103: Sun Dec 8 22:05:30 EET 2013 too...@tu-134.lan:/usr/obj/usr/src/sys/TU-134 amd64 >Description: $ egrep -V egrep (BSD grep) 2.5.1-FreeBSD
$ echo abc > testfile $ iconv -f ASCII -t UTF-16LE testfile > utftestfile $ egrep -c "a.b" /tmp/utftestfile 1 $ egrep -c "a.b|d" /tmp/utftestfile 0 The expected result is that the second "egrep" command should also return 1. This works as expected when using GNU grep 2.15 installed from ports. Also this works as expected with "bsdgrep -E" on FreeBSD 9.1 i386 system. >How-To-Repeat: See "Full Description" >Fix: >Release-Note: >Audit-Trail: >Unformatted: _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"