This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC][PATCH v5 00/13][BZ 10871] Month names in genitive case


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?

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);

which would be a kind of madness if applied wherever a month name
is needed.

Regards,

Rafal


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]