grep-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Grep-devel] [bug-gawk] GNU grep, awk, sed: support \u and \U for un


From: Norihiro Tanaka
Subject: Re: [Grep-devel] [bug-gawk] GNU grep, awk, sed: support \u and \U for unicode
Date: Wed, 25 Jan 2017 07:51:09 +0900

On Tue, 24 Jan 2017 14:25:25 -0800
Paul Eggert <address@hidden> wrote:

> On 01/23/2017 08:42 PM, David Niklas wrote:
> > how do we implement a Unicode point in a bracket?
> 
> Just use the Unicode character. E.g., the regular expression
> works already. Portable scripts that want to search for Unicode
> characters in Unicode locales can do so already, and don't need \u or
> \U or whatever.

Even If we support \u or \U, I think that at least it should not be
applied in expect meta character, and syntax RE_BACKSLASH_ESCAPE_IN_LISTS
should be considered in bracket.  RE_BACKSLASH_ESCAPE_IN_LISTS is off in
grep.  So if we expand \u or \U in bracket in grep, compatibility will
be lost.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]