From: Junio C Hamano Date: Sat, 06 Apr 2024 02:29:53 GMT Subject: Re: [PATCH 2/6] CodingGuidelines: quote assigned value in 'local var=$val' Message-ID: In-Reply-To: <02c801da87c1$eac025f0$c04071d0$@nexbridge.com> writes: >> - Use octal escape sequences (e.g. "\302\242"), not hexadecimal (e.g. >> "\xc2\xa2") in printf format strings, since hexadecimal escape >> sequences are not portable. > > I can confirm, at least for the set of platforms I work on, that printf with > hex values is definitely not portable. Sure, that is why we have that rule that we see in the context.