From 8818b5d8df686c0e340ef3d15a069bf54082d112 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 18 Jun 2020 20:16:36 +0530 Subject: [PATCH] Set CFBundleAllowMixedLocalizations in the app bundle to have NSLocale.currentLocale return the correct locale on non-English systems --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index 6375923ff..4961eaff0 100755 --- a/setup.py +++ b/setup.py @@ -857,7 +857,10 @@ def macos_info_plist() -> bytes: import plistlib VERSION = '.'.join(map(str, version)) pl = dict( + # see https://github.com/kovidgoyal/kitty/issues/1233 CFBundleDevelopmentRegion='English', + CFBundleAllowMixedLocalizations=True, + CFBundleDisplayName=appname, CFBundleName=appname, CFBundleIdentifier='net.kovidgoyal.' + appname,