ohmyzsh: Agnoster theme doesn't work

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

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 20 (6 by maintainers)

Commits related to this issue

Most upvoted comments

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

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.

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 https://github.com/Microsoft/WSL/issues/1878

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.

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

Glad to help 👍

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

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

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