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

-kube-ps1/kube-ps1.sh:27: character not in range when installing with zinit plugin manager #114

Closed
jdambly-ns opened this issue Feb 20, 2020 · 5 comments

Comments

@jdambly-ns
Copy link

when trying to install kubeps1 with zinit I am getting the following error

➜ ~ zplugin light jonmosco/kube-ps1

Downloading jonmosco/kube-ps1... (as jonmosco/kube-ps1...)

Cloning into '/home/jdambly/.zinit/plugins/jonmosco---kube-ps1'...
◥ ████ OBJ: 100, PACK: 551/551, COMPR: 100%, REC: 100%, RES: 100%
Compiling kube-ps1.sh.
/home/jdambly/.zinit/plugins/jonmosco---kube-ps1/kube-ps1.sh:27: character not in range

@smlx
Copy link

smlx commented Feb 21, 2020

probably your locale / lang settings aren't utf8: #80

@ChTBoner
Copy link

I confirm that should fix it. Add the same issue.
Editing my zshrc file with

export LC_ALL=fr_FR.UTF-8
export LANG=fr_FR.UTF-8 

fixed it

@jonmosco
Copy link
Owner

Thank you for the suggested fixes.

@xiaohui-zhangxh
Copy link

I don't why this does't work when I ssh to remote wsl from Mac iTerm. Finally I stopped error message with:

# ~/.zshrc

UNICODE_TEST=$(echo '\u2190' 2>/dev/null);
if [ -z $UNICODE_TEST ]; then
    KUBE_PS1_SYMBOL_DEFAULT='x'
fi

source $ZSH/oh-my-zsh.sh

@lsgrep
Copy link

lsgrep commented Jul 6, 2023

You have to put the LC_ALL and LANG at the top.

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

6 participants