You are not logged in.

#1 2017-12-11 16:43:27

rameez
Member
Registered: 2017-08-12
Posts: 10

Problem with locale settings

For some reason I had to re-instal arch linux. While installing I made two things different from my previous installation.
1)Installed linux-lts kernel (4.9.67-1-lts)
2)Created and added "LANG=en_US.utf-8" to /etc/locale.conf
I am recieving an error randomly while installing packages so I tried changing /etc/locale.conf. Now more frequently I am getting errors related to locale settings like this


example1
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LC_MESSAGES = "C",
        LANG = "en.IN.UTF-8"
    are supported and installed on your system.

example2
locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
en_US.utf8

example3
pip2 install dendropy
Collecting dendropy
  Using cached DendroPy-4.3.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-ZkWSiN/dendropy/setup.py", line 36, in <module>
        sys.stderr.write("-setup.py: {}\n".format(description()))
      File "dendropy/__init__.py", line 155, in description
        fields["DendroPy version"] = name()
      File "dendropy/__init__.py", line 132, in name
        return "{} {}{}".format(__project__, __version__, revision_description())
      File "dendropy/__init__.py", line 125, in revision_description
        if __revision__.is_available:
      File "dendropy/utility/vcsinfo.py", line 119, in is_available
        self.update()
      File "dendropy/utility/vcsinfo.py", line 125, in update
        if not self.repo_path or not self._vcs_available():
      File "dendropy/utility/vcsinfo.py", line 161, in _vcs_available
        retcode, stdout, stderr = self._run_vcs("--version")
      File "dendropy/utility/vcsinfo.py", line 154, in _run_vcs
        stdout, stderr = processio.communicate(p)
      File "dendropy/utility/processio.py", line 55, in communicate
        stdout = textprocessing.bytes_to_text(stdout)
      File "dendropy/utility/textprocessing.py", line 57, in bytes_to_text
        s = codecs.decode(s, ENCODING)
    LookupError: unknown encoding: in
   
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ZkWSiN/dendropy/

Are all these errors related? arise  because of a single problem?

My current locale settings are as follow
localectl status
   System Locale: LANG=en_US.utf8
       VC Keymap: us
      X11 Layout: us
Can anyone here help me to find out a solution for this?

Offline

#2 2017-12-11 17:02:56

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Problem with locale settings

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-12-11 18:28:58

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 757

Re: Problem with locale settings

Have you generated locales with locale-gen, or you just modified locale.conf?

Offline

#4 2017-12-11 18:31:11

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Problem with locale settings

locale -a shows that the locales are generated.

Post the output of just `locale`

Offline

#5 2017-12-11 21:52:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,863

Re: Problem with locale settings

perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LC_MESSAGES = "C",
        LANG = "en.IN.UTF-8"
    are supported and installed on your system.

wtf is "en.IN.UTF-8"??

Offline

#6 2017-12-12 16:30:59

rameez
Member
Registered: 2017-08-12
Posts: 10

Re: Problem with locale settings

Xabre wrote:

Have you generated locales with locale-gen, or you just modified locale.conf?

I have edited locale.conf
Now I run "locale-gen" output is  https://ptpb.pw/_zGU
then  "locale -a output is https://ptpb.pw/Z-OF
Now three of the error I mentioned are not occuring.
I should have done this before.
**NOTE: I think this pastebin urls will work. If not please dont mad at me I will get it right soon.

Offline

#7 2017-12-12 16:33:35

rameez
Member
Registered: 2017-08-12
Posts: 10

Re: Problem with locale settings

Scimmia wrote:

locale -a shows that the locales are generated.

Post the output of just `locale`

I have regenerated locale.conf using "locale-gen"
Now the output of "locale" is https://ptpb.pw/_zGU

Offline

#8 2017-12-12 16:34:57

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Problem with locale settings

There's no need to use a pastebin for such small amounts of text. In fact it's best not to as it harms the readability of the thread (I have to click on links instead of it being in the thread) as well as devaluing it further when the pastes are removed from the server.

Last edited by Slithery (2017-12-12 16:36:05)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2017-12-12 16:35:35

rameez
Member
Registered: 2017-08-12
Posts: 10

Re: Problem with locale settings

seth wrote:
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LC_MESSAGES = "C",
        LANG = "en.IN.UTF-8"
    are supported and installed on your system.

wtf is "en.IN.UTF-8"??

I was doing trial and error to solve the issue so I put "LANG = "en.IN.UTF-8" manually replacing US with IN (India)... My bad

Offline

#10 2017-12-13 00:03:10

heisenberg
Member
Registered: 2017-05-27
Posts: 87

Re: Problem with locale settings

Did you uncomment your language from /etc/locale.gen before running locale-gen ??
(Pay attention here: https://wiki.archlinux.org/index.php/in … ide#Locale)

Last edited by heisenberg (2017-12-13 00:03:56)

Offline

#11 2017-12-13 03:52:51

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Problem with locale settings

Again, read the locale -a output. Generating the locales has nothing to do with this.

Offline

#12 2017-12-13 09:27:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,863

Re: Problem with locale settings

The errors we've seen in this thread are sufficiently explained by the

LANG = "en.IN.UTF-8"

condition. If everything works now, this has been it. Otherwise please provide updated error messages.

Offline

Board footer

Powered by FluxBB