Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: 85857715f96ef9f591dd5ca0322dc293e1f07867
https://github.com/Perl/perl5/commit/85857715f96ef9f591dd5ca0322dc293e1f07867
Author: Karl Williamson
Date: 2024-01-31 (Wed, 31 Jan 2024)
Changed paths:
M locale.c
Log Message:
---
locale.c: Fix ALT_DIGITS on Alpine
Alpine, for the C and equivalent locales, doesn't return anything like
what the Posix Standard says it should for nl_langinfo(ALT_DIGITS).
It's supposed to be a string of up to 99 semi-colon-separated values.
Instead, it is a string "0123456789". There are no separators and these
are standard digits, not alternate. This commit causes any platform
that returns any digit [1-9] when alternates are requested to instead
return the empty string, which is used elsewhere, and now here, to
indicate there are no alternate digits for this locale.
The first alternate digit is allowed to be 0 in case the locale doesn't
have a zero in it, such as Roman numerals.