From aa434db91977960b29bc10c8aa58c038d02fa6b8 Mon Sep 17 00:00:00 2001 From: toonn Date: Wed, 1 Sep 2021 17:53:16 +0200 Subject: colorscheme: Force UTF-8 encoding --- ranger/gui/colorscheme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/gui/colorscheme.py b/ranger/gui/colorscheme.py index d14b4eda..859773fb 100644 --- a/ranger/gui/colorscheme.py +++ b/ranger/gui/colorscheme.py @@ -109,7 +109,7 @@ def _colorscheme_name_to_class(signal): # pylint: disable=too-many-branches if os.path.exists(signal.fm.confpath('colorschemes')): initpy = signal.fm.confpath('colorschemes', '__init__.py') if not os.path.exists(initpy): - with open(initpy, "a"): + with open(initpy, "a", encoding="utf-8"): # Just create the file pass -- cgit 1.4.1-2-gfad0