This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v3] Fix Days and Months name for Afar Locale
- From: Rafal Luzynski <digitalfreak at lingonborough dot com>
- To: Mike FABIAN <mfabian at redhat dot com>, Akhilesh Kumar <akhilesh dot k at samsung dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 8 Aug 2017 20:22:24 +0200 (CEST)
- Subject: Re: [PATCH v3] Fix Days and Months name for Afar Locale
- Authentication-results: sourceware.org; auth=none
- References: <CGME20170808100006epcas5p4706e76ca54f99bc31a1aff93868ccfbe@epcas5p4.samsung.com> <1502186127-30851-1-git-send-email-akhilesh.k@samsung.com> <s9dwp6e5j4r.fsf@redhat.com> <s9dinhy2mu8.fsf@redhat.com>
- Reply-to: Rafal Luzynski <digitalfreak at lingonborough dot com>
8.08.2017 15:47 Mike FABIAN <mfabian@redhat.com> wrote:
> [...]
> These are 13 month names.
> [...]
> > [... table with the names of the 13 months ...]
>
> I’m not sure how this can be put in to the aa_* locale files at all.
>
> glibc does not support Ethiopian calendar, or does it?
glibc does not support anything other than the Gregorian calendar
and there is no easy way to change it. We can't define MON_13 as
MON_12 + 1 because this equals AM_STR. We can't shift the constants
because this would cause a huge ABI incompatibility. Lots of
date/time processing functions report an error if a month number
is greater than 12 (or greater than 11 if the month number is
zero-based).
If preparing locales for the countries which use non-Gregorian
calendars we should rather ask how do they call Gregorian months.
Non-Gregorian calendars are supportable only if they accidentally
follow the same rules as Gregorian. For example, Julian calendar
should be supportable. But this is not helpful for many
non-European countries.
For non-Gregorian calendars ICU library is probably a better choice.
Regards,
Rafal