This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH][BZ #15527] strftime_l.c: Support lowercase output
- From: Rafal Luzynski <digitalfreak at lingonborough dot com>
- To: Mike Frysinger <vapier at gentoo dot org>, Jakub Martisko <jamartis at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 9 Dec 2016 02:14:49 +0100 (CET)
- Subject: Re: [PATCH][BZ #15527] strftime_l.c: Support lowercase output
- Authentication-results: sourceware.org; auth=none
- References: <576117B9.email@example.com> <firstname.lastname@example.org> <57737EE8.email@example.com> <20161206232035.GH10558@vapier.lan> <5847E1D6.firstname.lastname@example.org> <20161207153904.GL10558@vapier.lan>
- Reply-to: Rafal Luzynski <digitalfreak at lingonborough dot com>
7.12.2016 16:39 Mike Frysinger <email@example.com> wrote:
> [...] might be good to get wider opinion about new
> strftime flags though.
Now I lean a little against this change. As I wrote before,
I'd love to see a flag to change the first letter to uppercase
(or to titlecase, if that's more appropriate). A flag to change
whole string to lowercase would be a workaround for this problem
if we also converted all months and weekdays names to the
titlecase in all languages, like in English now. So we would have:
- titlecase by default,
- lowercase if a flag is added explicitly,
- uppercase if a flag is added explicitly.
All reasonable cases covered. Except that converting all locale
data would cause some problems to existing software and that
it wouldn't help the applications which retrieve the months names
or weekdays names with nl_langinfo() rather than strftime().
So indeed I think that a flag to convert to titlecase would
be more useful.
But in that case, do you guys think that converting to lowercase
is useful if all letters are either lowercase already or should
be always as they are now? Can you explain why would any application
ever need the lowercase which should be provided by a format flag
rather than converting programmatically? It seems to be useful
only if some locales want to convert some data to lowercase and
they don't have it lowercase out of the box.