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

Character not in range #80

Closed
pierluigilenoci opened this issue Mar 11, 2019 · 8 comments
Closed

Character not in range #80

pierluigilenoci opened this issue Mar 11, 2019 · 8 comments

Comments

@pierluigilenoci
Copy link

KUBE_PS1_SYMBOL_DEFAULT=${KUBE_PS1_SYMBOL_DEFAULT:-$'\u2388'}

produce this error on my machine

/usr/local/opt/kube-ps1/share/kube-ps1.sh:27: character not in range

@jonmosco
Copy link
Owner

Which shell are you using and what happens if you do the following:

echo $'\u2388'

@pierluigilenoci
Copy link
Author

pierluigilenoci commented Mar 11, 2019

zsh --version zsh 5.3 (x86_64-apple-darwin18.0)

echo $'\u2388' zsh: character not in range

I use iTerm2, that support utf-8. If I try to use Terminal of MacOS the command work.

@jonmosco
Copy link
Owner

What about the output of locale?

@pierluigilenoci
Copy link
Author

locale LANG= LC_COLLATE="C" LC_CTYPE="C" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL=

@pierluigilenoci
Copy link
Author

I added export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 to my zshrc and now works.

@jonmosco
Copy link
Owner

Ok great! I will close this issue. Thank you for using the project!

@SohamJ
Copy link

SohamJ commented Oct 9, 2020

If it helps, I was trying to do this in a Docker container and this stackoverflow thread helped me out. Thanks @pierluigilenoci on pointing me in the right direction :)

@Startouf
Copy link

Startouf commented Feb 8, 2024

Make sure those flags LANG=... are declared in your .zshrc BEFORE adding the zsh plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants