jonmosco / kube-ps1

Kubernetes prompt info for bash and zsh
Apache License 2.0
3.47k stars 349 forks source link

Character not in range #187

Closed memark closed 5 months ago

memark commented 5 months ago

In some contexts when starting my shell (for example when using mtm), I get this:

/opt/homebrew/opt/kube-ps1/share/kube-ps1.sh:27: character not in range
/Users/memark/.zshrc:122: command not found: kubeoff

Line 27 is this

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

Any idea why it's failing (and only sometimes)?

Startouf commented 5 months ago

Duplicate of https://github.com/jonmosco/kube-ps1/issues/80 ?

Have you added the lang flags before initializing your plugins ?

memark commented 5 months ago

Thanks, it was indeed a duplicate. The LC_ALL flag did the thing. (Already had LANG.)

Still don't know why it worked sometimes though, but that's for another time.