|
From: | Jan Novak |
Subject: | bug#17196: UTF-8 printf string formating problem |
Date: | Mon, 07 Apr 2014 23:41:03 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
Pádraig Brady wrote:
Pity there is no consensus here. Personally I would go for: printf '%3s' 'blah' # count cells printf '%3Ls' 'blah' # count chars LANG=C '%3Ls' 'blah' # count bytes LANG=C '%3s' 'blah' # count bytes
I vote for it ... it is excellent idea, that "standard" notation works properly in localized environment ! (because this is exactly what users expect) Thanks ! novak
[Prev in Thread] | Current Thread | [Next in Thread] |