Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agnoster theme doesn't work #4786

Closed
ghost opened this issue Jan 18, 2016 · 15 comments
Closed

Agnoster theme doesn't work #4786

ghost opened this issue Jan 18, 2016 · 15 comments

Comments

@ghost
Copy link

@ghost ghost commented Jan 18, 2016

When I launch zsh, I get

(anon):12: character not in range

I've installed powerline fonts, help plz!

I'm using konsole for kde plasma 5 to launch zsh, but I get the same error with Terminator, too. My OS is arch linux if that helps any

@mcornella
Copy link
Member

@mcornella mcornella commented Jan 18, 2016

This could be a locale issue. Please post the output of both locale and locale -a.

@ghost
Copy link
Author

@ghost ghost commented Jan 18, 2016

locale:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

locale -a:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX

@mcornella
Copy link
Member

@mcornella mcornella commented Jan 18, 2016

You need to install a locale that supports UTF-8. Notice you only have C and POSIX available which are, I suppose, the default locales shipped with archlinux. See generating locales.

@ghost
Copy link
Author

@ghost ghost commented Jan 18, 2016

Oh. Sorry! I uncommented the UTF-8 en_US locale, but didn't know I had to locale-gen again! Sorry!

@ghost ghost closed this Jan 18, 2016
@mcornella
Copy link
Member

@mcornella mcornella commented Jan 18, 2016

Glad to help 👍

@ghost
Copy link
Author

@ghost ghost commented Jan 18, 2016

but how do I change that color from that hard-to-see dark blue?

@mcornella
Copy link
Member

@mcornella mcornella commented Jan 18, 2016

It cannot be done currently, but if you search for light agnoster in this repository's pull requests you'll find some that can work for you.

@ocboogie
Copy link

@ocboogie ocboogie commented Nov 19, 2017

I have this problem too, and it turns out it is a problem with WSL. So for anyone that's trying to fix this problem in the future, and is using WSL I would look at microsoft/WSL#1878

@ixez
Copy link

@ixez ixez commented Mar 15, 2019

I encounter this problem with my Docker.
It needs to set locale in advance. I run the following code to solve the problem.

apt-get install -y locales
locale-gen en_US.UTF-8

@pmonty
Copy link

@pmonty pmonty commented Mar 16, 2019

Running arch linux and I get this problem in Konsole.

Not sure what to do.

output of locale and locale -a

pmonty@archPC:~% locale
LANG=C
LC_CTYPE=C
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
pmonty@archPC:~% locale -a
C
POSIX
en_AU.utf8

@nijkah
Copy link

@nijkah nijkah commented Feb 5, 2020

I faced the same issue.
I am using nvidia-docker for cuda setting.
Locale setting in my container seems no problem

LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8`

C
C.UTF-8
en_US.utf8
POSIX

but it still displays
(anon):12: character not in range

How can I solve it?

@mcornella
Copy link
Member

@mcornella mcornella commented Feb 5, 2020

Try with export LANG=en_US.utf8

@nijkah
Copy link

@nijkah nijkah commented Feb 7, 2020

After I export LANG=C.UTF-8, and i switched again as export LANG=en_US.UTF-8.
Now, it works fine.
I cannot find what the exact problem was.

@puzzle9
Copy link

@puzzle9 puzzle9 commented Dec 10, 2020

After I export LANG=C.UTF-8, and i switched again as export LANG=en_US.UTF-8.
Now, it works fine.
I cannot find what the exact problem was.

maybe reboot

@jadia
Copy link

@jadia jadia commented Dec 23, 2020

The following works for me everytime:

sudo apt-get install -y language-pack-en
sudo update-locale

Source: https://gist.github.com/jadia/1f4c2190730ef646d41823b6a6c30926

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants
@ixez @mcornella @pmonty @jadia @ocboogie @puzzle9 @nijkah and others