Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2013 19:58:46 GMT
From:      Toomas Aas <toomas.aas@raad.tartu.ee>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/184733: bsdgrep doesn't match a regular expression containing "|" against UTF-16 file
Message-ID:  <201312121958.rBCJwkW8068614@oldred.freebsd.org>
Resent-Message-ID: <201312122000.rBCK00kM033574@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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     toomas@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312121958.rBCJwkW8068614>