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
Prompt not visible in 3.1 if non-ascii character is used #6736
Comments
Please give the output of |
|
That's your issue. Please set the locale to something that can handle unicode, like one of the ".UTF-8" locales. See https://wiki.archlinux.org/index.php/Locale. Most likely you need to generate one, then configure it in /etc/locale.conf. This is still not a great failure mode - what it's supposed to do is to replace the unknown characters with "?", which is also what happens in my prompt, but for some reason the sorin prompt's function fish_prompt; echo -n (set_color red)'❯'(set_color yellow)'❯'(set_color green)'❯ '; end doesn't. |
Thank you @faho indeed that was the issue. Changing the locale to en_US.UTF-8 solved it. Should I close the issue or do you prefer to keep it open to track the failure mode not changing the unknown characters with "?" ? |
Let's keep it open, I'm bisecting. |
Bisects to 5134949. Well, I say that. Unfortunately it had a crash bug with a C locale which was only fixed by 2b0b3d3, but cherry-picking that on top makes it not crash yet fail to output. cc @ridiculousfish Mind taking a look? The issue is that function fish_prompt; echo 😃; end or other non-ascii chars causes no visible output with a C locale. |
Okay, it's actually 2b0b3d3. |
Fish 3.1.0 in Arch Linux using Konsole (but also reproducible in Xterm and Ctrl+Alt+f1/f6 virtual console) with $TERM = xterm-256color.
The prompt is not visible anymore just by changing the prompt to "Sorin" using fish_config. I can still type commands but the prompt is not visible. I observed that the problem happens as soon as I use a non-ascii character in fish_prompt. In the example visible in the screenshot I use "❯" from the Sorin prompt. Also, if I execute "fish_prompt" the expected prompt is printed:
I believe it is probably not related to fonts since:
How can I debug this? Any tip?
The text was updated successfully, but these errors were encountered: