Bug 12651 - strftime() needs to support more locale formats of conversion specifications
Summary: strftime() needs to support more locale formats of conversion specifications
Status: REOPENED
Alias: None
Product: glibc
Classification: Unclassified
Component: locale (show other bugs)
Version: 2.15
: P2 enhancement
Target Milestone: ---
Assignee: GNU C Library Locale Maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-07 18:40 UTC by Arash Mousavi
Modified: 2015-08-27 21:57 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arash Mousavi 2011-04-07 18:40:49 UTC
There are some alternative formats for conversion specifications that cause strftime() to show alternative numeric symbols for the current locale such as %OH, %OI, %Om, ....
Unfortunatly the lack of some alternative like %OY makes some applications like GNOME/Evoluation crash after translation: https://bugzilla.gnome.org/show_bug.cgi?id=553770 [it's really an old bug!]
It would be so nice if devlopers could enhance this feature. Sorry, I'm not an advance bug reporter!
Comment 1 Ulrich Drepper 2011-05-29 23:17:13 UTC
I have no idea what you're talking about.  You have to provide a small, self-contained test case.  If you have this, reopen the bug.  But not before.
Comment 2 Arash Mousavi 2012-03-24 10:30:27 UTC
(In reply to comment #1)
> I have no idea what you're talking about.  You have to provide a small,
> self-contained test case.  If you have this, reopen the bug.  But not before.

This is what I'm talking about with a lot more information and it is solved on gnome side:
https://bugzilla.gnome.org/show_bug.cgi?id=658107

I just reopened the bug, but if it's not related, feel free to close it again ;)
Comment 3 Wei-Lun Chao 2013-07-02 15:33:39 UTC
%OY may be also good for locale lzh_TW
(see http://www.sourceware.org/bugzilla/show_bug.cgi?id=15681 )
Is that supported by glibc now?
Comment 4 Eric Blake 2015-02-13 22:52:35 UTC
The Greek locale requires the support of %OB, supported in BSD since 1999, and documented by POSIX since 2010:
http://austingroupbugs.net/view.php?id=258

Note that this adds a new set of locale keywords, 'alt_mon ALTMON_1' through 'alt_mon ALTMON_12', for describing the genitive case for '%d %OB', while the existing '%B' remains the nominative case.