-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
► rendering as _ after 0.26.0 update #5439
Comments
Renders fine for me both in and out of tmux. Most likely some env var is Fix those and you should be fine. |
This was definitely a change in behavior from the prior release though. |
Looks like |
On Mon, Aug 29, 2022 at 07:00:55AM -0700, Kevin S Kirkup wrote:
This was definitely a change in behavior from the prior release though.
There is no change in rendering of that symbol. As evidenced by the fact
that it works outside of tmux. What tmux does to change that symbol to
underscore, god knows.
Also, not sure what the fix is here.
Check the env vars inside and outside tmux. Make them the same. Figure
out which one is the culprit. Then we can try to see why tmux is not
setting it correctly.
|
No idea, I dont even know what that is for. I suggest unsetting it. |
Also seeing this bug but with the non-ascii banner of console Spacemacs 28.1. Terminal renders it fine. |
|
There has to be something different in your env. Things don't happen by magic. Find out what it is.
And your LANG should be set to a UTF-8 based locale. |
Looks like Kitty is detecting as UTF-8 somehow:
|
yes, kitty sets it correctly automatically from cocoa locale settings. But check what it is inside tmux. |
Oh and for the record, LC_TERMINAL is a hack iterm2 uses because its shell integration scripts break when sshing from another terminal. https://gitlab.com/gnachman/iterm2/-/issues/7154 You should definitely not have it in kitty. I am guessing you have it because you ran kitty from inside iterm2 |
I deleted iTerm2 so pretty sure that's not the cause.
|
OK let me know what your findings are. I will re-open since it seems to affect multiple people. |
Aah I think I know the cause, there's a bug in 0.26 that can cause kitty |
That makes sense. When I export I'm going to leave the export in my |
I can confirm this -- was about to post: FWIW, I saw this too and explicitly setting With or without explicitly setting the var, kitty reports the same value for LANG (detected automatically) but I see the odd rendering. Is it possible kitty used to set LANG for children and no longer does? Tmux has logic to detect whether utf-8 is supported so perhaps something is affecting that? |
@CPWeaver Thanks! That fixed it for me. |
❤️ thank you @kovidgoyal |
You are welcome, I hate regressions :) |
The reason I didn't catch this issue before the release is that I set the @kovidgoyal However this environment variable will not appear in the official release.
|
@page-down: Not sure why that would be, the relevant code is in Both those code paths apply for kitty.app builds. Can you trace it down? |
Oh, I am referring only to Apparently macOS does not set LC_CTYPE when running kitty with launchd. This value is given from Python. unset LC_ALL LC_CTYPE LANG; python3 -c 'import os;print(os.environ["LC_CTYPE"]);'
# UTF-8 Perhaps the relevant codes in Python are located in @kovidgoyal /usr/bin/env -iS SHELL=$SHELL USER=$USER LOGNAME=$LOGNAME HOME=$HOME TMPDIR=$TMPDIR PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin \
/Applications/kitty.app/Contents/MacOS/kitty --config=NONE -o 'env LANG' --hold /usr/bin/env Do you know why the sh -c 'unset LINES COLUMNS; kitty --config=NONE -o "map f1 show_kitty_env_vars" --hold env'
sh -c 'unset LINES COLUMNS; kitty --config=NONE python -c "import os; print(os.environ); input()"' |
@page-down: these issues should all be fixed now. |
Describe the bug
After updating to the latest version (0.26.0), the
►
character is no longer being rendered properly intmux
session.It is showing up as an underscore instead
_
.Outside of a
tmux
session, it appears to work properly.To Reproduce
Steps to reproduce the behavior:
tmux
sessionEnvironment details
Additional context
Still seeing the same issue when running without config (
kitty --config NONE
)The text was updated successfully, but these errors were encountered: