I can't quite make this happen.
Setting LC_TIME
seems to work, but the locales are broken or whatever?
How do I force this onto my system?
$ for i in (locale -a); bash -c "LC_TIME=$i date -j -f '%Y-%m-%d' '2020-01-05' '+%W %a'" ; end
00 Sun
00 እሑድ
00 нд
00 א'
00 日
…
This should be 01 א'
for some of them at least…
What gives?
Looking at /usr/share/locale/*
I can't find anything resembling first_weekday
keyword at all:
$ cat en_US.UTF-8/LC_TIME
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
January
February
March
April
May
June
July
August
September
October
November
December
Sun
Mon
Tue
Wed
Thu
Fri
Sat
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
%H:%M:%S
%m/%d/%Y
%a %b %e %X %Y
AM
PM
%a %b %e %X %Z %Y
January
February
March
April
May
June
July
August
September
October
November
December
md
%I:%M:%S %p
macosx 10.12.6 (16G2136)
/usr/share/locale
are generated bylocaledef
out of the source definitions, you won't find keywords in there. – nohillside♦ Nov 10 '20 at 9:27