[Bug localedata/11485] New: output century (%C) is off by one

bugtrack at roumenpetrov dot info sourceware-bugzilla@sourceware.org
Fri Apr 9 20:23:00 GMT 2010


I could not resolve this with localedata - as example year 2010 is from 21
century for Bulgarian.
To me this is bug in code but I'm not sure that for all locales is correct to
replace line for case 'C' from file strftime_l.c from:
  DO_NUMBER (1, year / 100 - (year % 100 < 0));
to:
  DO_NUMBER (1, year / 100 - (year % 100 < 0) + (year >= 0));

-- 
           Summary: output century (%C) is off by one
           Product: glibc
           Version: 2.11
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
        AssignedTo: libc-locales at sources dot redhat dot com
        ReportedBy: bugtrack at roumenpetrov dot info
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11485

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Libc-locales mailing list