Re: Inconsistent behavior of core utilities

2022-08-23 Thread Mike Jonkmans
On Tue, Aug 23, 2022 at 09:50:20AM +0900, Dominique Martinet wrote: > Dave Close wrote on Mon, Aug 22, 2022 at 03:01:11PM -0700: > > $ grep CALL ./* | wc > > 16325 61444 950870 > > $ grep CALL $( ls ./* ) | wc > > 16375 61601 953451 > > > > So I almost have a solution. Except the ext

[PATCH] basenc: Paddingless input/output for base64url

2022-08-23 Thread Imre Rad
* src/basenc.c (ignore-padding): Padding is optional for base64url encoding and many web services produce and expect payload without padding. New command line argument (--ignore-padding) for basenc allows generating paddingless base64url outputs and you can also use it for decoding without scary wa

Re: [PATCH] basenc: Paddingless input/output for base64url

2022-08-23 Thread Michael Cook
+ int to_write = BASE_LENGTH (sum); + base_encode (inbuf, sum, outbuf, to_write); + if (without_padding) + { +while (*(outbuf+to_write-1) == '=') +{ +--to_write; +} + } Probably should make sure `to_wr

Re: [PATCH] basenc: Paddingless input/output for base64url

2022-08-23 Thread Imre Rad
Indeed; your suggestion is now included: * src/basenc.c (ignore-padding): Padding is optional for base64url encoding and many web services produce and expect payload without padding. New command line argument (--ignore-padding) for basenc allows generating paddingless base64url outputs and you can