Fix config encoding

Fixes #8834
This commit is contained in:
Philipp Hörist 2018-01-02 23:55:26 +01:00
parent b8fd8c8a3f
commit b1d45ec008
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class OptionsParser:
self.__tempfile = os.path.join(base_dir, '.' + filename) self.__tempfile = os.path.join(base_dir, '.' + filename)
try: try:
f = os.fdopen(os.open(self.__tempfile, f = os.fdopen(os.open(self.__tempfile,
os.O_CREAT|os.O_WRONLY|os.O_TRUNC, 0o600), 'w') os.O_CREAT|os.O_WRONLY|os.O_TRUNC, 0o600), 'w', encoding='utf-8')
except IOError as e: except IOError as e:
return str(e) return str(e)
try: try: