[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #29208] NSCalendarDate's format does not support the %k conversion
From: |
Yavor Doganov |
Subject: |
[bug #29208] NSCalendarDate's format does not support the %k conversion specifier |
Date: |
Fri, 12 Mar 2010 13:41:19 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko Kazehakase/0.5.8 Debian/0.5.8-2 |
URL:
<http://savannah.gnu.org/bugs/?29208>
Summary: NSCalendarDate's format does not support the %k
conversion specifier
Project: GNUstep
Submitted by: yavor
Submitted on: Fri 12 Mar 2010 03:41:18 PM EET
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Change Request
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
While preparing the upload of SimpleAgenda/0.40 for Debian I discovered
something unpleasant -- the time in the app icon is displayed as
'%k,<minutes>,<seconds>' when run under Bulgarian locale. This is because our
locale definition is '%k,%M,%S'. (The %k specifier is a GNU extension
according to the glibc manual, which makes its use perfectly valid in a glibc
locale.)
Unfortunately NSCalendarDate (as documented) does not understand it. I
checked the Cocoa documentation, and there's no %k there too (not
surprising).
Would you accept a patch implementing support for the %k specifier? I hope
that Apple not implementing it won't be an obstacle...
AFAICS from the online documentation, `strftime' in FreeBSD, OpenSolaris and
even Mac OS X support it, so it's not something strictly GNU-specific.
The attached test program demonstrates the current ugliness:
$ LC_ALL=C ./obj/test
%H:%M:%S
15:37:17
$ LC_ALL=en_US.UTF-8 ./obj/test
%r
03:38:37 PM
$ ./obj/test
%k,%M,%S
%k,38,48
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 12 Mar 2010 03:41:18 PM EET Name: test.m Size: 401B By: yavor
<http://savannah.gnu.org/bugs/download.php?file_id=19920>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29208>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #29208] NSCalendarDate's format does not support the %k conversion specifier,
Yavor Doganov <=