This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC][PATCH v5 00/13][BZ 10871] Month names in genitive case
On Fri, Dec 30, 2016 at 1:37 PM, Rafal Luzynski
<digitalfreak@lingonborough.com> wrote:
> 30.12.2016 13:55 Joseph Myers <joseph@codesourcery.com> wrote:
>> The localedef utility is defined by POSIX so that users can define their
>> own locales. It must accept locale sources that only include the data
>> defined by POSIX, without requiring any extensions such as alt_mon. (Of
>> course how such locales are represented in localedef *output* is up to
>> us.)
>
> That's OK for me if we define that if alt_mon section is missing then:
>
> - alt_mon is copied from mon?
> - or: alt_mon contains all empty strings?
Definitely copy from mon.
> My point is that neither glibc nor applications should deal with
> missing alt_mon data with this kind of code:
>
> month = nl_langinfo (ALTMON_1 + n);
> if (!month || !*month)
> month = nl_langinfo (MON_1 + n);
Agree.
zw