macOS bundle: Set the PYTHONIOENCODING env var to utf-8
There are apparently still some situations where python ends up with ascii as its I/O encoding on macOS. See #724
This commit is contained in:
parent
255cacf912
commit
b3e2562c00
4
setup.py
4
setup.py
@ -658,7 +658,9 @@ Categories=System;TerminalEmulator;
|
||||
NSHighResolutionCapable=True,
|
||||
NSSupportsAutomaticGraphicsSwitching=True,
|
||||
LSApplicationCategoryType='public.app-category.utilities',
|
||||
LSEnvironment={'KITTY_LAUNCHED_BY_LAUNCH_SERVICES': '1'},
|
||||
# Ensure I/O encoding is always utf-8, see
|
||||
# https://github.com/kovidgoyal/kitty/issues/724
|
||||
LSEnvironment={'KITTY_LAUNCHED_BY_LAUNCH_SERVICES': '1', 'PYTHONIOENCODING': 'utf-8'},
|
||||
)
|
||||
plistlib.writePlist(pl, 'Info.plist')
|
||||
os.rename('../share', 'Resources')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user