First Day of week stuck on Sunday in any locale (Debian)












1















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.










share|improve this question





























    1















    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.










    share|improve this question



























      1












      1








      1








      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.










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 3 hours ago









      Rui F Ribeiro

      39.5k1479132




      39.5k1479132










      asked 3 hours ago









      FrAFrA

      191




      191






















          3 Answers
          3






          active

          oldest

          votes


















          2














          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






          share|improve this answer








          New contributor




          jayooin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




























            2














            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





            share|improve this answer

































              0














              try cal -m or cal --monday, see man cal






              share|improve this answer























                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
                });


                }
                });














                draft saved

                draft discarded


















                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









                2














                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






                share|improve this answer








                New contributor




                jayooin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.

























                  2














                  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






                  share|improve this answer








                  New contributor




                  jayooin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.























                    2












                    2








                    2







                    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






                    share|improve this answer








                    New contributor




                    jayooin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.










                    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







                    share|improve this answer








                    New contributor




                    jayooin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    share|improve this answer



                    share|improve this answer






                    New contributor




                    jayooin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    answered 3 hours ago









                    jayooinjayooin

                    654




                    654




                    New contributor




                    jayooin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.





                    New contributor





                    jayooin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.






                    jayooin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.

























                        2














                        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





                        share|improve this answer






























                          2














                          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





                          share|improve this answer




























                            2












                            2








                            2







                            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





                            share|improve this answer















                            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






                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited 3 hours ago

























                            answered 3 hours ago









                            GAD3RGAD3R

                            25.8k1751107




                            25.8k1751107























                                0














                                try cal -m or cal --monday, see man cal






                                share|improve this answer




























                                  0














                                  try cal -m or cal --monday, see man cal






                                  share|improve this answer


























                                    0












                                    0








                                    0







                                    try cal -m or cal --monday, see man cal






                                    share|improve this answer













                                    try cal -m or cal --monday, see man cal







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered 3 hours ago









                                    BodoBodo

                                    3086




                                    3086






























                                        draft saved

                                        draft discarded




















































                                        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.




                                        draft saved


                                        draft discarded














                                        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





















































                                        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







                                        Popular posts from this blog

                                        Magento 2 controller redirect on button click in phtml file

                                        Polycentropodidae