Changing locale from en_US.utf8 to en_US in RHEL 7

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite
1












I'm installing "Red Hat Enterprise Linux 7.2 (Linux version 3.10.0-327.el7.x86_64 (mockbuild@x86-034.build.eng.bos.redhat.com) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Oct 29 17:29:29 EDT 2015)"



I am trying to switch from LANG="en_US.UTF-8" to LANG="en_US" as we need to operate the OS in 8 bits ASCII mode.



I have tried to change /etc/locale.conf and reboot.



It doesn't work for gnome. For instance, when I try to launch a terminal session, I get this error:



Dec 23 14:27:56 cmt22 gnome-session: Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/libexec/gnome-terminal-server exited with status 8


Accordingly to gnome documentation, it says the locale is not defined but localectl list-locales shows it is defined.










share|improve this question



























    up vote
    1
    down vote

    favorite
    1












    I'm installing "Red Hat Enterprise Linux 7.2 (Linux version 3.10.0-327.el7.x86_64 (mockbuild@x86-034.build.eng.bos.redhat.com) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Oct 29 17:29:29 EDT 2015)"



    I am trying to switch from LANG="en_US.UTF-8" to LANG="en_US" as we need to operate the OS in 8 bits ASCII mode.



    I have tried to change /etc/locale.conf and reboot.



    It doesn't work for gnome. For instance, when I try to launch a terminal session, I get this error:



    Dec 23 14:27:56 cmt22 gnome-session: Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/libexec/gnome-terminal-server exited with status 8


    Accordingly to gnome documentation, it says the locale is not defined but localectl list-locales shows it is defined.










    share|improve this question

























      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      I'm installing "Red Hat Enterprise Linux 7.2 (Linux version 3.10.0-327.el7.x86_64 (mockbuild@x86-034.build.eng.bos.redhat.com) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Oct 29 17:29:29 EDT 2015)"



      I am trying to switch from LANG="en_US.UTF-8" to LANG="en_US" as we need to operate the OS in 8 bits ASCII mode.



      I have tried to change /etc/locale.conf and reboot.



      It doesn't work for gnome. For instance, when I try to launch a terminal session, I get this error:



      Dec 23 14:27:56 cmt22 gnome-session: Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/libexec/gnome-terminal-server exited with status 8


      Accordingly to gnome documentation, it says the locale is not defined but localectl list-locales shows it is defined.










      share|improve this question















      I'm installing "Red Hat Enterprise Linux 7.2 (Linux version 3.10.0-327.el7.x86_64 (mockbuild@x86-034.build.eng.bos.redhat.com) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Oct 29 17:29:29 EDT 2015)"



      I am trying to switch from LANG="en_US.UTF-8" to LANG="en_US" as we need to operate the OS in 8 bits ASCII mode.



      I have tried to change /etc/locale.conf and reboot.



      It doesn't work for gnome. For instance, when I try to launch a terminal session, I get this error:



      Dec 23 14:27:56 cmt22 gnome-session: Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/libexec/gnome-terminal-server exited with status 8


      Accordingly to gnome documentation, it says the locale is not defined but localectl list-locales shows it is defined.







      rhel gnome gnome-terminal locale






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 31 '17 at 18:17









      Bigon

      1,178613




      1,178613










      asked Dec 23 '15 at 14:51









      user23921

      62




      62




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          Some forwards:



          • RHEL 7 as opposed to 5 defaults to the utf8 character encoding. So in RHEL5, you could do 'en_US' and you'd still be in ASCII. Now you're in utf8.

          • Unfortunately, all man pages are now in utf8 and the man page system
            sorta forces you to use it. You will have trouble viewing some man pages with a non-utf8 encoding unless you hammer away at the nroff program and man.config

          • 8-bit ASCII is de facto replaced with iso-8859-1, which lacks a few things that are fixed by iso-8859-15.

          You can override the character encoding by replacing UTF-8 with iso-8859-1 or perhaps iso-8859-15. Update /etc/locale.conf (in <7, /etc/sysconfig/i18n) or set it per-user in $HOME/.i18n.



          LANG=en_US.iso-8859-15


          Test on the command line first (using export LANG...) and then run locale to make sure there are no errors (it will complain if so).






          share|improve this answer






















          • sorry, I tried with en_US.iso885915 but I get the same issue into gnome.
            – user23921
            Dec 23 '15 at 15:54










          • I updated my answer to be more specific. and fix some mistakes. Re-read and try again?
            – Otheus
            Dec 23 '15 at 16:08










          • Worst case: set LANG=C and re-start gnome. Are you running GNOME as a system desktop? Do you know how to relaunch it without rebooting?
            – Otheus
            Dec 23 '15 at 16:45

















          up vote
          0
          down vote













          You need an UTF8 locale for gnome-terminal to work properly in the recent version of GNOME






          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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f251163%2fchanging-locale-from-en-us-utf8-to-en-us-in-rhel-7%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Some forwards:



            • RHEL 7 as opposed to 5 defaults to the utf8 character encoding. So in RHEL5, you could do 'en_US' and you'd still be in ASCII. Now you're in utf8.

            • Unfortunately, all man pages are now in utf8 and the man page system
              sorta forces you to use it. You will have trouble viewing some man pages with a non-utf8 encoding unless you hammer away at the nroff program and man.config

            • 8-bit ASCII is de facto replaced with iso-8859-1, which lacks a few things that are fixed by iso-8859-15.

            You can override the character encoding by replacing UTF-8 with iso-8859-1 or perhaps iso-8859-15. Update /etc/locale.conf (in <7, /etc/sysconfig/i18n) or set it per-user in $HOME/.i18n.



            LANG=en_US.iso-8859-15


            Test on the command line first (using export LANG...) and then run locale to make sure there are no errors (it will complain if so).






            share|improve this answer






















            • sorry, I tried with en_US.iso885915 but I get the same issue into gnome.
              – user23921
              Dec 23 '15 at 15:54










            • I updated my answer to be more specific. and fix some mistakes. Re-read and try again?
              – Otheus
              Dec 23 '15 at 16:08










            • Worst case: set LANG=C and re-start gnome. Are you running GNOME as a system desktop? Do you know how to relaunch it without rebooting?
              – Otheus
              Dec 23 '15 at 16:45














            up vote
            0
            down vote













            Some forwards:



            • RHEL 7 as opposed to 5 defaults to the utf8 character encoding. So in RHEL5, you could do 'en_US' and you'd still be in ASCII. Now you're in utf8.

            • Unfortunately, all man pages are now in utf8 and the man page system
              sorta forces you to use it. You will have trouble viewing some man pages with a non-utf8 encoding unless you hammer away at the nroff program and man.config

            • 8-bit ASCII is de facto replaced with iso-8859-1, which lacks a few things that are fixed by iso-8859-15.

            You can override the character encoding by replacing UTF-8 with iso-8859-1 or perhaps iso-8859-15. Update /etc/locale.conf (in <7, /etc/sysconfig/i18n) or set it per-user in $HOME/.i18n.



            LANG=en_US.iso-8859-15


            Test on the command line first (using export LANG...) and then run locale to make sure there are no errors (it will complain if so).






            share|improve this answer






















            • sorry, I tried with en_US.iso885915 but I get the same issue into gnome.
              – user23921
              Dec 23 '15 at 15:54










            • I updated my answer to be more specific. and fix some mistakes. Re-read and try again?
              – Otheus
              Dec 23 '15 at 16:08










            • Worst case: set LANG=C and re-start gnome. Are you running GNOME as a system desktop? Do you know how to relaunch it without rebooting?
              – Otheus
              Dec 23 '15 at 16:45












            up vote
            0
            down vote










            up vote
            0
            down vote









            Some forwards:



            • RHEL 7 as opposed to 5 defaults to the utf8 character encoding. So in RHEL5, you could do 'en_US' and you'd still be in ASCII. Now you're in utf8.

            • Unfortunately, all man pages are now in utf8 and the man page system
              sorta forces you to use it. You will have trouble viewing some man pages with a non-utf8 encoding unless you hammer away at the nroff program and man.config

            • 8-bit ASCII is de facto replaced with iso-8859-1, which lacks a few things that are fixed by iso-8859-15.

            You can override the character encoding by replacing UTF-8 with iso-8859-1 or perhaps iso-8859-15. Update /etc/locale.conf (in <7, /etc/sysconfig/i18n) or set it per-user in $HOME/.i18n.



            LANG=en_US.iso-8859-15


            Test on the command line first (using export LANG...) and then run locale to make sure there are no errors (it will complain if so).






            share|improve this answer














            Some forwards:



            • RHEL 7 as opposed to 5 defaults to the utf8 character encoding. So in RHEL5, you could do 'en_US' and you'd still be in ASCII. Now you're in utf8.

            • Unfortunately, all man pages are now in utf8 and the man page system
              sorta forces you to use it. You will have trouble viewing some man pages with a non-utf8 encoding unless you hammer away at the nroff program and man.config

            • 8-bit ASCII is de facto replaced with iso-8859-1, which lacks a few things that are fixed by iso-8859-15.

            You can override the character encoding by replacing UTF-8 with iso-8859-1 or perhaps iso-8859-15. Update /etc/locale.conf (in <7, /etc/sysconfig/i18n) or set it per-user in $HOME/.i18n.



            LANG=en_US.iso-8859-15


            Test on the command line first (using export LANG...) and then run locale to make sure there are no errors (it will complain if so).







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Dec 23 '15 at 16:07

























            answered Dec 23 '15 at 15:36









            Otheus

            3,242730




            3,242730











            • sorry, I tried with en_US.iso885915 but I get the same issue into gnome.
              – user23921
              Dec 23 '15 at 15:54










            • I updated my answer to be more specific. and fix some mistakes. Re-read and try again?
              – Otheus
              Dec 23 '15 at 16:08










            • Worst case: set LANG=C and re-start gnome. Are you running GNOME as a system desktop? Do you know how to relaunch it without rebooting?
              – Otheus
              Dec 23 '15 at 16:45
















            • sorry, I tried with en_US.iso885915 but I get the same issue into gnome.
              – user23921
              Dec 23 '15 at 15:54










            • I updated my answer to be more specific. and fix some mistakes. Re-read and try again?
              – Otheus
              Dec 23 '15 at 16:08










            • Worst case: set LANG=C and re-start gnome. Are you running GNOME as a system desktop? Do you know how to relaunch it without rebooting?
              – Otheus
              Dec 23 '15 at 16:45















            sorry, I tried with en_US.iso885915 but I get the same issue into gnome.
            – user23921
            Dec 23 '15 at 15:54




            sorry, I tried with en_US.iso885915 but I get the same issue into gnome.
            – user23921
            Dec 23 '15 at 15:54












            I updated my answer to be more specific. and fix some mistakes. Re-read and try again?
            – Otheus
            Dec 23 '15 at 16:08




            I updated my answer to be more specific. and fix some mistakes. Re-read and try again?
            – Otheus
            Dec 23 '15 at 16:08












            Worst case: set LANG=C and re-start gnome. Are you running GNOME as a system desktop? Do you know how to relaunch it without rebooting?
            – Otheus
            Dec 23 '15 at 16:45




            Worst case: set LANG=C and re-start gnome. Are you running GNOME as a system desktop? Do you know how to relaunch it without rebooting?
            – Otheus
            Dec 23 '15 at 16:45












            up vote
            0
            down vote













            You need an UTF8 locale for gnome-terminal to work properly in the recent version of GNOME






            share|improve this answer
























              up vote
              0
              down vote













              You need an UTF8 locale for gnome-terminal to work properly in the recent version of GNOME






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                You need an UTF8 locale for gnome-terminal to work properly in the recent version of GNOME






                share|improve this answer












                You need an UTF8 locale for gnome-terminal to work properly in the recent version of GNOME







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 31 '17 at 17:37









                Bigon

                1,178613




                1,178613



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f251163%2fchanging-locale-from-en-us-utf8-to-en-us-in-rhel-7%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?