bug#17196: UTF-8 printf string formating problem

2014-04-10 Thread Rich Felker
On Wed, Apr 09, 2014 at 02:49:37PM +0200, Steffen Nurpmeso wrote: > Eric Blake wrote: > |>> Dan Douglas wrote: > |>>> ksh93 already has this feature using the "L" modifier: > |>>> > |>>> ksh -c "printf '%.3Ls\n' $'\u2605\u2605\u2605\u2605\u2605'" > |>>> ★★★ > |>> > |>> At least there is

bug#17196: UTF-8 printf string formating problem

2014-04-10 Thread Steffen Nurpmeso
Rich Felker wrote: |On Wed, Apr 09, 2014 at 02:49:37PM +0200, Steffen Nurpmeso wrote: |> Eric Blake wrote: |>|Hmm. POSIX requires support for %ls (aka %S) according to byte counts, |>|and currently states that %Ls is undefined. But I would LOVE to have a |>|standardized spelling for counti

bug#17196: UTF-8 printf string formating problem

2014-04-10 Thread Chet Ramey
On 4/10/14, 12:16 PM, Steffen Nurpmeso wrote: > Even better would nonetheless be the great picture with > a termios(4) IUTF8 flag, some extended xywidth(3) that returns > a tuple of {[EastAsianWidth indication,] is-combining, > width-if-non-combining} and best even some composition function. But