[PATCH 1/2] localedef: Fix handling of empty mon_decimal_point
Florian Weimer
fweimer@redhat.com
Mon Jan 31 16:37:20 GMT 2022
* Andreas Schwab:
> On Jan 31 2022, Florian Weimer wrote:
>
>> * Andreas Schwab:
>>
>>> On Jan 31 2022, Florian Weimer via Libc-alpha wrote:
>>>
>>>> There's an existing comment
>>>>
>>>> /* The decimal point must not be empty. This is not said explicitly
>>>> in POSIX but ANSI C (ISO/IEC 9899) says in 4.4.2.1 it has to be
>>>> != "". */
>>>>
>>>> that says that empty strings/null characters are invalid.
>>>
>>> This is only about decimal_point, mon_decimal_point can be empty.
>>
>> Hmm, I'll take your word for it.
>
> See 7.11.2.1, paragraph 3 and 10.
That is fairly conclusive indeed (numbers match C11).
Are you okay with Carlos' patch with a comment update?
Thanks,
Florian
More information about the Libc-alpha
mailing list