mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 09:18:08 +02:00
Ensure config file is always opened with UTF-8
This commit is contained in:
@@ -403,7 +403,7 @@ def load_config(*paths, overrides=None) -> Options:
|
|||||||
if not path:
|
if not path:
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
f = open(path)
|
f = open(path, encoding='utf-8')
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
continue
|
continue
|
||||||
with f:
|
with f:
|
||||||
|
|||||||
Reference in New Issue
Block a user