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]

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


Hello,

Please excuse me my brevity but this set of patches was really
exhausting.  Recently I wondered how we should deal with the
locales which do not (yet) provide alternative month names:
should we return the basic form instead? should we tell the
application developers to check for NULL or empty string every
time they retrieve ALTMON_n and use MON_n as a fallback?
And finally, after comparing with other systems which have
already fixed the issue I realized that their rules are:

* alt_mon locale data are obligatory, even if they are
  identical with mon data;
* that means there is no checking if alt_mon data are NULL
  or empty, if they are they are passed as they are;
* this simplifies code;
* all locale data provide alt_mon even if they are identical
  with mon data.

All locale data are provided with glibc so we can ensure
they fulfill our own requirements.

So the biggest change (measuring quality, not quantity) is
making alt_mon obligatory and not checking in the code if
the data are present or not.

This means that all locale data must provide the alt_mon
block and this is the biggest change measuring quantity.
I have automatically copied all mon blocks into alt_mon
blocks for all supported locales.

Also I have imported month names from CLDR.  This provides
an actual full support of genitive/nominative month names
for 15 new locales, adding 4 locales supported previously
we have total 19 locales, 17 different languages (Greek
and Russian appear twice).  Apparently, Lithuanian language
data featured only genitive form so far so the nominative
has been imported.  Many other languages have been fixed
or updated at the same time.  Some changes are loosely
related with this bug (CLDR encourages to start month
names with uppercase in alt_mon block and lowercase in
mon block for those languages which do not need two grammatical
cases, and this is what has been imported), some are
completely unrelated but once imported I find them worth
uploading.

I encourage you to review this set and explain what else
needs to be done to let it be pushed to the repository,
except the documentation which I'm aware of.

Christmas time is not proper for hacking.  During next few
days I'll be online occasionally but I'll be unable to develop.
I should be back during the short week between Christmas
and New Year's Eve.  Merry Christmas everybody!

Regards,

Rafal


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