[Bug 281710] RegEXP bug in bracket expression [^...] - sed(1), grep(1), re_format(7)

[email protected]
Newsgroups gmane.os.freebsd.devel.standards
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281710

Kyle Evans <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Kyle Evans <[email protected]> ---
On -CURRENT:

kevans@ifrit:~$ echo '9â' | /usr/bin/sed        -n 's/\([^â]\)\(â\)/-\1-\2-/p'
-9-â-
kevans@ifrit:~$ echo '9â' | /usr/bin/sed        -En 's/([^â])(â)/-\1-\2-/p'   
-9-â-
kevans@ifrit:~$ echo '9â' | /usr/bin/grep       -E '[^â]â'
9â
kevans@ifrit:~$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_ALL=

(C.UTF-8 is also fine, as you would expect)

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.