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/18205] New: Wrong first_weekday and first_workday for be_BY*


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

            Bug ID: 18205
           Summary: Wrong first_weekday and first_workday for be_BY*
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
          Assignee: unassigned at sourceware dot org
          Reporter: andrei.dziahel at gmail dot com
                CC: libc-locales at sourceware dot org

Created attachment 8227
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8227&action=edit
Proposed patch to fix first_weekday & first_workday for be_BY locales

Reproducing:

1. Get a test program from
https://bug747346.bugzilla-attachments.gnome.org/attachment.cgi?id=300994,
compile it
2. Run it with LC_TIME=be_BY.utf8 ./a.out

Expected output:  

> first_weekday: 2
> week_1stday: 0
> Week start: 1

It's same output as one for ru_RU, uk_UA and other territories where week
begins with Monday.

What happens instead: the output is 
> first_weekday: 1
> week_1stday: 0
> Week start: 0
same as for en_US and other territories where week begins with Sunday

I've attached a (trivial?) patch which should fix this.

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


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