[Top][All Lists]

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

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

From: Paul Eggert
Subject: Re: [Grep-devel] GNU grep,awk,sed: support \u and \U for unicode
Date: Tue, 10 Jan 2017 22:19:09 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

Assaf Gordon wrote:
I'm more interested to discuss whether such long-term behavior is something
that you'd consider for each respective projects (perhaps even mentally
reserve '\u' and '\U' sequences for it, or accept patches in that direction).

It should work for grep. Though, to be honest I don't find \u and \U escapes to be all that useful except for East Asian languages. A better syntax is the Emacs \N escape, e.g., \N{EN DASH} which you can also write as \N{U+2013} if you know the codes by heart. Admittedly \N requires more runtime support.

reply via email to

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