This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug time/21370] RFE: strftime() needs a "convert to titlecase" flag
- From: "digitalfreak at lingonborough dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 13 Apr 2017 01:02:51 +0000
- Subject: [Bug time/21370] RFE: strftime() needs a "convert to titlecase" flag
- Auto-submitted: auto-generated
- References: <bug-21370-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21370
--- Comment #4 from Rafal Luzynski <digitalfreak at lingonborough dot com> ---
I'd like the people from specific language communities come and speak here
because I suspect such languages may not exist. :-) I'm aware that it may take
many years and I'm not in a hurry with this bug.
But let's assume that such language exists. Still it looks to me more than
like an incomplete solution or another missing feature rather than a conflict.
It shouldn't be hurting for anyone if an _optional_ feature to capitalize the
first letter is added.
If they need something like "de Avril" or "d'Abril" then probably besides
"capitalize the first letter" flag they would also need:
- capitalize the first letter of every word,
- capitalize the first letter of the second word (or more precisely: of the
main word).
Or maybe it would be easier to:
- fix the bug 15527,
- change all locale data to the proper titlecase so they will be always
titlecased by default (like in English),
- those who want lowercase would use "^#" explicitly,
- those who want all uppercase would use "^" etc.
So for example (Catalan):
"%A, %d %B" -> "Dimecres, 12 d’Abril" (or "…D’abril"?)
"%A, %d %^#B" -> "Dimecres, 12 d’abril" (this is probably correct)
This would make this bug report obsolete.
I proposed this idea here:
https://sourceware.org/ml/libc-alpha/2016-12/msg00303.html but it seems to me
it wasn't liked.
--
You are receiving this mail because:
You are on the CC list for the bug.