[PATCH] Alternative digits in date/time

Hamed Malek hamed@bamdad.org
Wed Mar 23 10:25:00 GMT 2005


I send this patch again with a screenshot of what we will get by using
this trick in date and time:

http://www.bamdad.org/~hamed/glibc/ldate.png

And the description in my previous mail:

The Single Unix Specification added 'O' modifier for displaying
alternative numeric symbols. This can be used for displaying localized
digits in date/time format. All needed specifiers support it in date and
time except 'Y' (year in four digits). 'O' range is 0 to 99.

This small patch lets us to precede this modifier by 'C' (century
number) to replace it with four digits year by putting %OC%Oy instead of
%Y.

Attached is the strftime patch with needed modifications in fa_IR.

Hamed


-------------- next part --------------
A non-text attachment was scrubbed...
Name: strftime_l.patch
Type: text/x-patch
Size: 667 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20050323/6480705c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fa_IR.patch
Type: text/x-patch
Size: 11478 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20050323/6480705c/attachment-0001.bin>


More information about the Libc-alpha mailing list