Re: [PATCH 2/6] CodingGuidelines: quote assigned value in 'local var=$val'
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 6, 2024, 02:29 UTC
- Message-ID
- <xmqqplv3p6ji.fsf@gitster.g>
- In-Reply-To
- <02c801da87c1$eac025f0$c04071d0$@nexbridge.com>
<rsbecker@nexbridge.com> writes:
Show 6 quoted lines
>> - 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.