Re: printf(1): support \u and \U

2021-05-07 Thread Todd C . Miller
On Fri, 07 May 2021 16:39:34 +0200, Martijn van Duren wrote: > Any takers? > > Updated diff after previous commit below. OK millert@ - todd

Re: printf(1): support \u and \U

2021-05-07 Thread Martijn van Duren
Any takers? Updated diff after previous commit below. martijn@ On Sun, 2021-04-18 at 23:54 +0200, Martijn van Duren wrote: > On Sun, 2021-04-18 at 22:53 +0200, Martijn van Duren wrote: > > On Sun, 2021-04-18 at 17:52 +0200, Martijn van Duren wrote: > > > I'm always frustrated when a unicode

Re: printf(1): support \u and \U

2021-04-18 Thread Martijn van Duren
On Sun, 2021-04-18 at 22:53 +0200, Martijn van Duren wrote: > On Sun, 2021-04-18 at 17:52 +0200, Martijn van Duren wrote: > > I'm always frustrated when a unicode character question comes up and I > > have to look up the UTF-8 byte sequence to reproduce it. When fixing \x > > I found the \u and \U

Re: printf(1): support \u and \U

2021-04-18 Thread Martijn van Duren
On Sun, 2021-04-18 at 17:52 +0200, Martijn van Duren wrote: > I'm always frustrated when a unicode character question comes up and I > have to look up the UTF-8 byte sequence to reproduce it. When fixing \x > I found the \u and \U escape sequences in gprintf, which seem mighty > handy for this

printf(1): support \u and \U

2021-04-18 Thread Martijn van Duren
I'm always frustrated when a unicode character question comes up and I have to look up the UTF-8 byte sequence to reproduce it. When fixing \x I found the \u and \U escape sequences in gprintf, which seem mighty handy for this exact case. My implementation differs from gprintf in that leading