oh-my-fish / theme-bobthefish

A Powerline-style, Git-aware fish theme optimized for awesome.
MIT License
1.46k stars 225 forks source link

Setting LANG, LC_ALL results in questions marks #261

Closed EdGue42 closed 4 years ago

EdGue42 commented 4 years ago

I added

set -x LANG "C" set -x LC_ALL "C"

to my fish.config in order to fix some issues when using the shell with some remote systems that need these settings for python (?) to work properly.

After adding these two sets, bob shows me that infamous "question mark" prompt:

image

Notes:

image

bobthecow commented 4 years ago

Yep, this is expected. The POSIX ("C") locale doesn't support anything outside of ASCII characters, and powerline characters are definitely that. Ideally the fix for this is to stop using the POSIX locale. No modern system should need that :(

Otherwise, you can disable powerline support in bobthefish, and it'll fall back to only ASCII characters. Add this to your fish config:

set -g theme_powerline_fonts no
EdGue42 commented 4 years ago

Thanks for the quick response and helpful explanation!