[Bug libc/18666] New: Add support for '%OY' in strftime(), currently only "%Oy" is supported

sandeep.shedmake at gmail dot com sourceware-bugzilla@sourceware.org
Tue Jul 14 09:12:00 GMT 2015


https://sourceware.org/bugzilla/show_bug.cgi?id=18666

            Bug ID: 18666
           Summary: Add support for '%OY' in strftime(), currently only
                    "%Oy" is supported
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: sandeep.shedmake at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Created attachment 8435
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8435&action=edit
screenshot showing '%OY' instead of 4 digit year with evolution-3.16.3-2.fc22
for or_IN locale

Description of problem:
Add support for '%OY' in strftime(). Currently it doesn't support "%OY", only
"%Oy" is supported and thus 4-digit year is not possible.

Version-Release number of selected component (if applicable):
glibc-2.21-5.fc22.x86_64

How reproducible:
Always

Steps to Reproduce:
1. $ LANG=or_IN.utf8
2. $ date +%Om-%Od-%OY

Actual results:
୭-୧୩-%OY (4 digit year not supported)

Expected results:
୭-୧୩-%OY (4 digit year should be supported: ୭-୧୩-୨୦୧୫)

Additional info:
$ LANG=or_IN.utf8 date +%Om-%Od-%Oy
୭-୧୩-୧୫

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list