Re: [hackers] [PATCH sbase] libutil/unescape: Stop octal escape at 3 digits

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.net>
Date: Tue, 6 May 2025 10:49:01 +0200

Hi,

On Wed, Apr 30, 2025 at 02:13:38PM -0600, Evan Gates wrote:
> Unfortunately POSIX specifies that printf(1)'s %b conversion specifier
> interprets octal as \0ddd. IIRC that is why unescape uses 4 now.
> That should probably be an argument that can be passed in or configurable
> in some way so we can support that correctly. Or open an issue with
> the Austin Group to ask about it (I haven't searched to see if one
> already exists).
>
> https://pubs.opengroup.org/onlinepubs/9799919799/utilities/printf.html

uhmmmm, this is a bit weird. I suppose you are right and we need the
additional parameter. Can you write the patch?

Regards,
Received on Tue May 06 2025 - 10:49:01 CEST

This archive was generated by hypermail 2.3.0 : Tue May 06 2025 - 11:00:43 CEST