public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Rafal Luzynski <digitalfreak@lingonborough.com>
To: Chris Leonard <cjlhomeaddress@gmail.com>
Cc: libc-alpha <libc-alpha@sourceware.org>
Subject: Re: [RFC][PATCH v2 1/6] Implement alternative month names (bug 10871).
Date: Fri, 25 Mar 2016 20:55:00 -0000	[thread overview]
Message-ID: <143256632.450925.970c398f-fa88-4e8c-b1c0-1869f0cf78de.open-xchange@poczta.nazwa.pl> (raw)
In-Reply-To: <CAHdAatY9wijz2kXwXDWfw9cOSCFhYnSLoM8qRJcKYi2b14qNKA@mail.gmail.com>

> 25.03.2016 02:54 Chris Leonard <cjlhomeaddress@gmail.com> wrote:
>
>
> Query:
>
> I'm not especially well versed in which languages have a nom/gen
> distinction, but I am aware of languages which have 13 months (because
> of lunar calendars). Is it safer to include an ALTMON_13 just in case
> of overlap between the two variants?

Sounds like a separate problem but my short answer is: it does not make
sense IMHO.

Indeed it's safer to add ALTMON_13 now than adding it later. But it won't
help you if you don't add MON_13 and ABMON_13. Adding such feature would
be even more horrible task than adding alternative (nominative/genitive)
month names. All nl_langinfo() constants are defined continuously, there
are no gaps between them. If you add MON_13 immediately after MON_12
you will increment the values of all constants after it and you will
break API. Also there are many places in glibc code which assume that
month numbers are 0..11 (12 values) and report an error if they are
outside this range. There is no way to configure the number of months
at the moment. You can add MON_13, ABMON_13 and ALTMON_13 at the end
of the LC_TIME category but then there are places which assume that
all month names make a continuous table and it's correct to refer to
them with a simple expression like month_name[tm_mon]. All those parts
would have to be rewritten.

Does glibc have any support for the lunar calendars? Looks like
it does not at all. Although probably it would be good idea for those
countries/locales which use such calendars.

Best regards,

Rafal

  reply	other threads:[~2016-03-25 20:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-25  0:52 Rafal Luzynski
2016-03-25  1:55 ` Chris Leonard
2016-03-25 20:55   ` Rafal Luzynski [this message]
2016-03-26  0:58     ` Chris Leonard
2016-03-29 23:16       ` Rafal Luzynski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=143256632.450925.970c398f-fa88-4e8c-b1c0-1869f0cf78de.open-xchange@poczta.nazwa.pl \
    --to=digitalfreak@lingonborough.com \
    --cc=cjlhomeaddress@gmail.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).