First Day of week stuck on Sunday in any locale (Debian)
I'm trying to figure out why I can't have any locale working with monday set as first day of the week.
Installed locales:
francescos@Thinkpad-T420:~$ locale -a
C
C.UTF-8
en_GB.utf8
en_IE.utf8
en_US.utf8
it_IT.utf8
POSIX
and while this looks good:
francescos@Thinkpad-T420:~$ LC_TIME="en_US.UTF-8" cal
January 2019
Su Mo Tu We Th Fr Sa
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
this one looks weird, as it should start with Monday:
francescos@Thinkpad-T420:~$ LC_TIME="en_IE.UTF-8" cal
January 2019
Su Mo Tu We Th Fr Sa
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
Final surprise, even this one looks terribly wrong:
francescos@Thinkpad-T420:~$ LC_TIME="it_IT.UTF-8" cal
Gennaio 2019
do lu ma me gi ve sa
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
I have already checked files @ /usr/share/i18n/locales/, and they look good (like they correctly specify the day the week should start from, Monday=2).
My /etc/default/locale looks like this:
# File generated by update-locale
LANG=en_IE.UTF-8
LANGUAGE="en_IE:en"
LC_MONETARY=it_IT.UTF-8
LC_MEASUREMENT=it_IT.UTF-8
LC_NUMERIC=it_IT.UTF-8
LC_PAPER=it_IT.UTF-8
LC_TIME=en_IE.UTF-8
and this is the output of "locale -a"
francescos@Thinkpad-T420:~$ locale -a
C
C.UTF-8
en_GB.utf8
en_IE.utf8
en_US.utf8
it_IT.utf8
POSIX
francescos@Thinkpad-T420:~$ locale
LANG=en_IE.utf8
LANGUAGE=en_IE:en
LC_CTYPE="en_IE.utf8"
LC_NUMERIC=it_IT.UTF-8
LC_TIME=en_IE.UTF-8
LC_COLLATE="en_IE.utf8"
LC_MONETARY=it_IT.UTF-8
LC_MESSAGES="en_IE.utf8"
LC_PAPER=it_IT.UTF-8
LC_NAME="en_IE.utf8"
LC_ADDRESS="en_IE.utf8"
LC_TELEPHONE="en_IE.utf8"
LC_MEASUREMENT=it_IT.UTF-8
LC_IDENTIFICATION="en_IE.utf8"
LC_ALL=
I've already re-generated locales and rebooted the system.
debian xfce locale calendar
add a comment |
I'm trying to figure out why I can't have any locale working with monday set as first day of the week.
Installed locales:
francescos@Thinkpad-T420:~$ locale -a
C
C.UTF-8
en_GB.utf8
en_IE.utf8
en_US.utf8
it_IT.utf8
POSIX
and while this looks good:
francescos@Thinkpad-T420:~$ LC_TIME="en_US.UTF-8" cal
January 2019
Su Mo Tu We Th Fr Sa
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
this one looks weird, as it should start with Monday:
francescos@Thinkpad-T420:~$ LC_TIME="en_IE.UTF-8" cal
January 2019
Su Mo Tu We Th Fr Sa
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
Final surprise, even this one looks terribly wrong:
francescos@Thinkpad-T420:~$ LC_TIME="it_IT.UTF-8" cal
Gennaio 2019
do lu ma me gi ve sa
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
I have already checked files @ /usr/share/i18n/locales/, and they look good (like they correctly specify the day the week should start from, Monday=2).
My /etc/default/locale looks like this:
# File generated by update-locale
LANG=en_IE.UTF-8
LANGUAGE="en_IE:en"
LC_MONETARY=it_IT.UTF-8
LC_MEASUREMENT=it_IT.UTF-8
LC_NUMERIC=it_IT.UTF-8
LC_PAPER=it_IT.UTF-8
LC_TIME=en_IE.UTF-8
and this is the output of "locale -a"
francescos@Thinkpad-T420:~$ locale -a
C
C.UTF-8
en_GB.utf8
en_IE.utf8
en_US.utf8
it_IT.utf8
POSIX
francescos@Thinkpad-T420:~$ locale
LANG=en_IE.utf8
LANGUAGE=en_IE:en
LC_CTYPE="en_IE.utf8"
LC_NUMERIC=it_IT.UTF-8
LC_TIME=en_IE.UTF-8
LC_COLLATE="en_IE.utf8"
LC_MONETARY=it_IT.UTF-8
LC_MESSAGES="en_IE.utf8"
LC_PAPER=it_IT.UTF-8
LC_NAME="en_IE.utf8"
LC_ADDRESS="en_IE.utf8"
LC_TELEPHONE="en_IE.utf8"
LC_MEASUREMENT=it_IT.UTF-8
LC_IDENTIFICATION="en_IE.utf8"
LC_ALL=
I've already re-generated locales and rebooted the system.
debian xfce locale calendar
add a comment |
I'm trying to figure out why I can't have any locale working with monday set as first day of the week.
Installed locales:
francescos@Thinkpad-T420:~$ locale -a
C
C.UTF-8
en_GB.utf8
en_IE.utf8
en_US.utf8
it_IT.utf8
POSIX
and while this looks good:
francescos@Thinkpad-T420:~$ LC_TIME="en_US.UTF-8" cal
January 2019
Su Mo Tu We Th Fr Sa
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
this one looks weird, as it should start with Monday:
francescos@Thinkpad-T420:~$ LC_TIME="en_IE.UTF-8" cal
January 2019
Su Mo Tu We Th Fr Sa
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
Final surprise, even this one looks terribly wrong:
francescos@Thinkpad-T420:~$ LC_TIME="it_IT.UTF-8" cal
Gennaio 2019
do lu ma me gi ve sa
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
I have already checked files @ /usr/share/i18n/locales/, and they look good (like they correctly specify the day the week should start from, Monday=2).
My /etc/default/locale looks like this:
# File generated by update-locale
LANG=en_IE.UTF-8
LANGUAGE="en_IE:en"
LC_MONETARY=it_IT.UTF-8
LC_MEASUREMENT=it_IT.UTF-8
LC_NUMERIC=it_IT.UTF-8
LC_PAPER=it_IT.UTF-8
LC_TIME=en_IE.UTF-8
and this is the output of "locale -a"
francescos@Thinkpad-T420:~$ locale -a
C
C.UTF-8
en_GB.utf8
en_IE.utf8
en_US.utf8
it_IT.utf8
POSIX
francescos@Thinkpad-T420:~$ locale
LANG=en_IE.utf8
LANGUAGE=en_IE:en
LC_CTYPE="en_IE.utf8"
LC_NUMERIC=it_IT.UTF-8
LC_TIME=en_IE.UTF-8
LC_COLLATE="en_IE.utf8"
LC_MONETARY=it_IT.UTF-8
LC_MESSAGES="en_IE.utf8"
LC_PAPER=it_IT.UTF-8
LC_NAME="en_IE.utf8"
LC_ADDRESS="en_IE.utf8"
LC_TELEPHONE="en_IE.utf8"
LC_MEASUREMENT=it_IT.UTF-8
LC_IDENTIFICATION="en_IE.utf8"
LC_ALL=
I've already re-generated locales and rebooted the system.
debian xfce locale calendar
I'm trying to figure out why I can't have any locale working with monday set as first day of the week.
Installed locales:
francescos@Thinkpad-T420:~$ locale -a
C
C.UTF-8
en_GB.utf8
en_IE.utf8
en_US.utf8
it_IT.utf8
POSIX
and while this looks good:
francescos@Thinkpad-T420:~$ LC_TIME="en_US.UTF-8" cal
January 2019
Su Mo Tu We Th Fr Sa
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
this one looks weird, as it should start with Monday:
francescos@Thinkpad-T420:~$ LC_TIME="en_IE.UTF-8" cal
January 2019
Su Mo Tu We Th Fr Sa
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
Final surprise, even this one looks terribly wrong:
francescos@Thinkpad-T420:~$ LC_TIME="it_IT.UTF-8" cal
Gennaio 2019
do lu ma me gi ve sa
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
I have already checked files @ /usr/share/i18n/locales/, and they look good (like they correctly specify the day the week should start from, Monday=2).
My /etc/default/locale looks like this:
# File generated by update-locale
LANG=en_IE.UTF-8
LANGUAGE="en_IE:en"
LC_MONETARY=it_IT.UTF-8
LC_MEASUREMENT=it_IT.UTF-8
LC_NUMERIC=it_IT.UTF-8
LC_PAPER=it_IT.UTF-8
LC_TIME=en_IE.UTF-8
and this is the output of "locale -a"
francescos@Thinkpad-T420:~$ locale -a
C
C.UTF-8
en_GB.utf8
en_IE.utf8
en_US.utf8
it_IT.utf8
POSIX
francescos@Thinkpad-T420:~$ locale
LANG=en_IE.utf8
LANGUAGE=en_IE:en
LC_CTYPE="en_IE.utf8"
LC_NUMERIC=it_IT.UTF-8
LC_TIME=en_IE.UTF-8
LC_COLLATE="en_IE.utf8"
LC_MONETARY=it_IT.UTF-8
LC_MESSAGES="en_IE.utf8"
LC_PAPER=it_IT.UTF-8
LC_NAME="en_IE.utf8"
LC_ADDRESS="en_IE.utf8"
LC_TELEPHONE="en_IE.utf8"
LC_MEASUREMENT=it_IT.UTF-8
LC_IDENTIFICATION="en_IE.utf8"
LC_ALL=
I've already re-generated locales and rebooted the system.
debian xfce locale calendar
debian xfce locale calendar
edited 12 hours ago
Rui F Ribeiro
39.5k1479132
39.5k1479132
asked 12 hours ago
FrAFrA
191
191
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
You need to set your locale to the british one for the time display LC_TIME="en_GB.UTF-8"
to get your calendar to start on monday.
You can see the configuration in that post here
Set it in the /etc/default/locale
depending on your system. /ect/locale.conf
New contributor
add a comment |
Use ncal -M
(the -M
option is only available for ncal
):
sample output:
January 2019
Mo 7 14 21 28
Tu 1 8 15 22 29
We 2 9 16 23 30
Th 3 10 17 24 31
Fr 4 11 18 25
Sa 5 12 19 26
Su 6 13 20 27
The man ncal
:
-M Weeks start on Monday.
Using cal
command , you need to change the line under:
/usr/share/i18n/locales/en_US
from:
LC_TIME
abday "Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat"
To:
LC_TIME
abday "Mon";"Tue";"Wed";"Thu";"Fri";"Sat";"Sun"
Then run:
locale-gen
sample output , cal
:
January 2019
Mo Tu We Th Fr Sa Su
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
add a comment |
try cal -m
or cal --monday
, see man cal
… where there is no such option documented or it means something quite different. manpages.debian.org/stretch/bsdmainutils/cal.1.en.html manpages.debian.org/stretch/gcal/gcal.1.en.html netbsd.gw.com/cgi-bin/man-cgi?cal+1 You should probably make it clear that your answer only applies to thecal
from util-linux, which is not provided on the questioner's operating system.
– JdeBP
8 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f494828%2ffirst-day-of-week-stuck-on-sunday-in-any-locale-debian%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You need to set your locale to the british one for the time display LC_TIME="en_GB.UTF-8"
to get your calendar to start on monday.
You can see the configuration in that post here
Set it in the /etc/default/locale
depending on your system. /ect/locale.conf
New contributor
add a comment |
You need to set your locale to the british one for the time display LC_TIME="en_GB.UTF-8"
to get your calendar to start on monday.
You can see the configuration in that post here
Set it in the /etc/default/locale
depending on your system. /ect/locale.conf
New contributor
add a comment |
You need to set your locale to the british one for the time display LC_TIME="en_GB.UTF-8"
to get your calendar to start on monday.
You can see the configuration in that post here
Set it in the /etc/default/locale
depending on your system. /ect/locale.conf
New contributor
You need to set your locale to the british one for the time display LC_TIME="en_GB.UTF-8"
to get your calendar to start on monday.
You can see the configuration in that post here
Set it in the /etc/default/locale
depending on your system. /ect/locale.conf
New contributor
New contributor
answered 11 hours ago
jayooinjayooin
654
654
New contributor
New contributor
add a comment |
add a comment |
Use ncal -M
(the -M
option is only available for ncal
):
sample output:
January 2019
Mo 7 14 21 28
Tu 1 8 15 22 29
We 2 9 16 23 30
Th 3 10 17 24 31
Fr 4 11 18 25
Sa 5 12 19 26
Su 6 13 20 27
The man ncal
:
-M Weeks start on Monday.
Using cal
command , you need to change the line under:
/usr/share/i18n/locales/en_US
from:
LC_TIME
abday "Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat"
To:
LC_TIME
abday "Mon";"Tue";"Wed";"Thu";"Fri";"Sat";"Sun"
Then run:
locale-gen
sample output , cal
:
January 2019
Mo Tu We Th Fr Sa Su
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
add a comment |
Use ncal -M
(the -M
option is only available for ncal
):
sample output:
January 2019
Mo 7 14 21 28
Tu 1 8 15 22 29
We 2 9 16 23 30
Th 3 10 17 24 31
Fr 4 11 18 25
Sa 5 12 19 26
Su 6 13 20 27
The man ncal
:
-M Weeks start on Monday.
Using cal
command , you need to change the line under:
/usr/share/i18n/locales/en_US
from:
LC_TIME
abday "Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat"
To:
LC_TIME
abday "Mon";"Tue";"Wed";"Thu";"Fri";"Sat";"Sun"
Then run:
locale-gen
sample output , cal
:
January 2019
Mo Tu We Th Fr Sa Su
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
add a comment |
Use ncal -M
(the -M
option is only available for ncal
):
sample output:
January 2019
Mo 7 14 21 28
Tu 1 8 15 22 29
We 2 9 16 23 30
Th 3 10 17 24 31
Fr 4 11 18 25
Sa 5 12 19 26
Su 6 13 20 27
The man ncal
:
-M Weeks start on Monday.
Using cal
command , you need to change the line under:
/usr/share/i18n/locales/en_US
from:
LC_TIME
abday "Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat"
To:
LC_TIME
abday "Mon";"Tue";"Wed";"Thu";"Fri";"Sat";"Sun"
Then run:
locale-gen
sample output , cal
:
January 2019
Mo Tu We Th Fr Sa Su
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
Use ncal -M
(the -M
option is only available for ncal
):
sample output:
January 2019
Mo 7 14 21 28
Tu 1 8 15 22 29
We 2 9 16 23 30
Th 3 10 17 24 31
Fr 4 11 18 25
Sa 5 12 19 26
Su 6 13 20 27
The man ncal
:
-M Weeks start on Monday.
Using cal
command , you need to change the line under:
/usr/share/i18n/locales/en_US
from:
LC_TIME
abday "Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat"
To:
LC_TIME
abday "Mon";"Tue";"Wed";"Thu";"Fri";"Sat";"Sun"
Then run:
locale-gen
sample output , cal
:
January 2019
Mo Tu We Th Fr Sa Su
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
edited 11 hours ago
answered 12 hours ago
GAD3RGAD3R
25.8k1751107
25.8k1751107
add a comment |
add a comment |
try cal -m
or cal --monday
, see man cal
… where there is no such option documented or it means something quite different. manpages.debian.org/stretch/bsdmainutils/cal.1.en.html manpages.debian.org/stretch/gcal/gcal.1.en.html netbsd.gw.com/cgi-bin/man-cgi?cal+1 You should probably make it clear that your answer only applies to thecal
from util-linux, which is not provided on the questioner's operating system.
– JdeBP
8 hours ago
add a comment |
try cal -m
or cal --monday
, see man cal
… where there is no such option documented or it means something quite different. manpages.debian.org/stretch/bsdmainutils/cal.1.en.html manpages.debian.org/stretch/gcal/gcal.1.en.html netbsd.gw.com/cgi-bin/man-cgi?cal+1 You should probably make it clear that your answer only applies to thecal
from util-linux, which is not provided on the questioner's operating system.
– JdeBP
8 hours ago
add a comment |
try cal -m
or cal --monday
, see man cal
try cal -m
or cal --monday
, see man cal
answered 12 hours ago
BodoBodo
3436
3436
… where there is no such option documented or it means something quite different. manpages.debian.org/stretch/bsdmainutils/cal.1.en.html manpages.debian.org/stretch/gcal/gcal.1.en.html netbsd.gw.com/cgi-bin/man-cgi?cal+1 You should probably make it clear that your answer only applies to thecal
from util-linux, which is not provided on the questioner's operating system.
– JdeBP
8 hours ago
add a comment |
… where there is no such option documented or it means something quite different. manpages.debian.org/stretch/bsdmainutils/cal.1.en.html manpages.debian.org/stretch/gcal/gcal.1.en.html netbsd.gw.com/cgi-bin/man-cgi?cal+1 You should probably make it clear that your answer only applies to thecal
from util-linux, which is not provided on the questioner's operating system.
– JdeBP
8 hours ago
… where there is no such option documented or it means something quite different. manpages.debian.org/stretch/bsdmainutils/cal.1.en.html manpages.debian.org/stretch/gcal/gcal.1.en.html netbsd.gw.com/cgi-bin/man-cgi?cal+1 You should probably make it clear that your answer only applies to the
cal
from util-linux, which is not provided on the questioner's operating system.– JdeBP
8 hours ago
… where there is no such option documented or it means something quite different. manpages.debian.org/stretch/bsdmainutils/cal.1.en.html manpages.debian.org/stretch/gcal/gcal.1.en.html netbsd.gw.com/cgi-bin/man-cgi?cal+1 You should probably make it clear that your answer only applies to the
cal
from util-linux, which is not provided on the questioner's operating system.– JdeBP
8 hours ago
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f494828%2ffirst-day-of-week-stuck-on-sunday-in-any-locale-debian%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown