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 · 10 comments

Comments

Projects
None yet
4 participants
@ghost
Copy link

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

This comment has been minimized.

Copy link
Collaborator

commented Jan 18, 2016

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

@ghost

This comment has been minimized.

Copy link
Author

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

This comment has been minimized.

Copy link
Collaborator

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

This comment has been minimized.

Copy link
Author

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

This comment has been minimized.

Copy link
Collaborator

commented Jan 18, 2016

Glad to help 👍

@ghost

This comment has been minimized.

Copy link
Author

commented Jan 18, 2016

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

@mcornella

This comment has been minimized.

Copy link
Collaborator

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.