about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-09-01 17:53:16 +0200
committertoonn <toonn@toonn.io>2021-09-01 17:57:15 +0200
commitaa434db91977960b29bc10c8aa58c038d02fa6b8 (patch)
tree9b0fefb7a818c409c464f4d6eaee5af80f7d39e5 /ranger
parentcbf139e60e432a628ac82030126b9362435f44a9 (diff)
downloadranger-aa434db91977960b29bc10c8aa58c038d02fa6b8.tar.gz
colorscheme: Force UTF-8 encoding
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/colorscheme.py2
1 files changed, 1 insertions, 1 deletions
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