bug#65659: RFC: changing printf(1) behavior on %b

2023-09-02 Thread Steffen Nurpmeso
Stephane Chazelas wrote in <20230902084912.vdfedsgbnat2w...@chazelas.org>: |2023-09-01 23:28:50 +0200, Steffen Nurpmeso via austin-group-l at The \ |Open Group: ... |>|FWIW, a "printf %b" github shell code search returns ~ 29k |>|entries |>|(https://github.com/sear

bug#65659: RFC: changing printf(1) behavior on %b

2023-09-02 Thread Steffen Nurpmeso
Stephane Chazelas via austin-group-l at The Open Group wrote in <20230901181024.pwx4plwclz7ij...@chazelas.org>: |2023-09-01 07:54:02 -0500, Eric Blake via austin-group-l at The Open Group: ... |> How many scripts in the wild actually use %b, though? And if there |> are such scripts, anything

bug#17196: UTF-8 printf string formating problem

2014-04-11 Thread Steffen Nurpmeso
Hello, Chet Ramey chet.ra...@case.edu wrote: |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

bug#17196: UTF-8 printf string formating problem

2014-04-11 Thread Steffen Nurpmeso
Chet Ramey chet.ra...@case.edu wrote: |On 4/11/14, 6:16 AM, Steffen Nurpmeso wrote: | Hello, | | Chet Ramey chet.ra...@case.edu wrote: ||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

bug#17196: UTF-8 printf string formating problem

2014-04-10 Thread Steffen Nurpmeso
Rich Felker dal...@aerifal.cx wrote: |On Wed, Apr 09, 2014 at 02:49:37PM +0200, Steffen Nurpmeso wrote: | Eric Blake ebl...@redhat.com 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

bug#17196: UTF-8 printf string formating problem

2014-04-09 Thread Steffen Nurpmeso
Eric Blake ebl...@redhat.com 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 prior art for it. | | So we can count bytes, chars or cells (graphemes). | |