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

Terminal prints broken on macOS with ko_KR locale #474

Open
sinoru opened this issue Sep 14, 2023 · 3 comments
Open

Terminal prints broken on macOS with ko_KR locale #474

sinoru opened this issue Sep 14, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@sinoru
Copy link

sinoru commented Sep 14, 2023

What happened:

➜  ~ export LANG=ko_KR.UTF-8
➜  ~ dive debian:latest
image

What you expected to happen:

➜  ~ export LANG=en_US.UTF-8
➜  ~ dive debian:latest
image

How to reproduce it (as minimally and precisely as possible):

export LANG=ko_KR.UTF-8

Anything else we need to know?:

Environment:

  • OS version: macOS 14.0
@sinoru sinoru added the bug Something isn't working label Sep 14, 2023
@eye942
Copy link

eye942 commented Jan 10, 2024

Looks like the issue could be with fillStr and selectedFillStr

It sounds as if your terminal font might have a different Korean/CJK rendering for both box drawings horizontal light and em-dash between the locales.

What is your Terminal font and character set?

@sinoru
Copy link
Author

sinoru commented Jan 10, 2024

What is your Terminal font and character set?

I'm using SF mono on iTerm2, It's character set is probably UTF-8.

@eye942
Copy link

eye942 commented Jan 11, 2024

Looks iTerm2 has an faq entry that might solve this:

Q: The fonts are looking weird. What should I do?
A: iTerm2 lets you to specify two fonts. If you only use English or western european languages, you probably only need to set the font for ASCII characters. For other languages, you need to specify a font that works with your language as the Non-ASCII font. You need to make sure the size (height) of two fonts do not differ greatly, so iTerm2 won't display a mess of mixed glyphs.

Q: Some characters appear to be twice as wide as others, and things aren't lining up correctly.
Q: I'm a Chinese, Japanese, or Korean user and some characters don't line up because they are not rendered in double-width.
A: Go to Preferences > Profiles > Text and change the setting of "Treat ambiguous-width characters as double-width."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants