This is the mail archive of the libc-locales@sourceware.org mailing list for the GNU libc locales project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]