This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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/22241] New locale: Yakut (Sakha) locale for Russia (sah_RU)


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

--- Comment #4 from Mike FABIAN <maiku.fabian at gmail dot com> ---
(In reply to Rafal Luzynski from comment #1)

> THE MAJOR ISSUE HERE: The abday and day arrays must always start with
> Sunday.  If you want to display Monday first it will be specified elsewhere.
> See also: https://sourceware.org/glibc/wiki/Locales#LC_TIME

The relevant part at the link Rafal gave is:

    WEEKSTARTDATE specifies the base of the abday and day lists

    first_weekday specifies the offset of the first day-of-week in the
    abday and day lists

    For compatibility reasons, all locales should set WEEKSTARTDATE on
    19971130 (Sunday) and base the abday and day lists appropriately,
    and set first_weekday 1 or 2 depending to whether their week
    actually starts on Sunday or Monday.

So you should set "first_weekday 2" if you want to display Monday in
the first column of a calendar but start the abday arrays with Sunday

> Now when you fix these bugs please provide a patch instead of a file.  The
> patch should add this file and add the language to localedata/SUPPORTED. 
> Though, I'm not sure ATM if the new line in localedata/SUPPORTED should be
> "sah_RU/UTF-8" or "sah_RU.UTF-8/UTF-8".  Please see some examples of patches
> which add a new language:
> https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=f8de956
> https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=3f802ae

I think "sah_RU/UTF-8" is better.

-- 
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]