coreutils
[Top][All Lists]
Advanced

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

Re: Multibyte awareness


From: Pádraig Brady
Subject: Re: Multibyte awareness
Date: Wed, 22 Feb 2017 20:04:26 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 19/02/17 06:53, PePa wrote:
> Not sure which tools in coreutils are multibyte-aware, but tr definitely
> isn't, and since it is supposed to support [:lower:] and [:upper:], it
> really should be aware.
> 
> I know I can use bash (and I do!), but something like this should just work:
> echo σιγμας | tr '[:lower:]' '[:upper:]'

Yes it should work, and there is a plan in place:
http://www.pixelbeat.org/docs/coreutils_i18n/
However getting someone with both expertise and time is difficult.

Note your use case is supported with GNU sed:

$ echo σιγμας | sed -e 's/.*/\U&/'
ΣΙΓΜΑΣ

thanks,
Pádraig.



reply via email to

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