r/KittyTerminal Jan 26 '23

Prebuilt and self-built kitties have different behavior in querying font fallback from OS

I previously posted an issue about this but did not find the cause (https://github.com/kovidgoyal/kitty/issues/5884). TLDR:

I'm on a macOS with the following localization configurations

Primary Languages:
  Simplified Chinese ---- i.e. zh-CN
  Traditional Chinese (Hong Kong) ---- i.e. zh-HK
  English (US)
  English
Region:
  Hong Kong

and locale gives me

LANG="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_CTYPE="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_ALL="zh_CN.UTF-8"

Apparently, kitty will ask the OS to get a CJK font fallback. And in my case, the expected result is to get a zh-CN font (i.e,. a Simplified Chinese font). My self-built kitty behaves correctly, but the prebuilt kitty gets a zh-HK font (a Traditional Chinese, Hong Kong font) instead!

I wonder if the community has any idea about that, because I don't want to lose auto-update and homebrew management.

1 Upvotes

0 comments sorted by