[PATCH] localedata: Update ar locales abbreviations [BZ #32349]

Mike FABIAN mfabian@redhat.com
Thu Nov 14 23:28:54 GMT 2024


Florian Weimer <fw@deneb.enyo.de> さんはかきました:

> * Ahmed Najmawi:
>
>> Apologies, I messed up the formatting..
>>
>> Arabic does not use abbreviations for weekdays/months, this updates
>> abday and abmon in accordance with CLDR.
>
> What about the day headings in calendars? This web site
> <https://www.moph.gov.qa/arabic/mediacenter/Events/Pages/default.aspx>
> seems to use abbreviations there.
>
> I was going to ask about the cal tool from util-linux, but I'm not
> sure if it works correctly today.

It produces this:

$ LC_ALL=ar_EG.UTF-8 cal 
     نوفمبر 2024    
 س  ح  ن  ث  ر  خ  ج
    1  2  3  4  5  6
 7  8  9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31 32 33 34
35

And it seems to use ABDAY:

static void weekdays_init(struct cal_control *ctl)
{
	size_t wd;
	int i;

	for (i = 0; i < DAYS_IN_WEEK; i++) {
		wd = (i + ctl->weekstart) % DAYS_IN_WEEK;
		ctl->weekdays[i] = nl_langinfo(ABDAY_1 + wd);
	}
}

If “abday” is made the same as “day” in the ar_* locales, it will be too
long for the column headers in this calendar output.

-- 
Mike FABIAN <mfabian@redhat.com>
睡眠不足はいい仕事の敵だ。



More information about the Libc-alpha mailing list