From b1d45ec008b2ead33e203f5eb3844c0bdbffc2b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Tue, 2 Jan 2018 23:55:26 +0100 Subject: [PATCH] Fix config encoding Fixes #8834 --- gajim/common/optparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gajim/common/optparser.py b/gajim/common/optparser.py index 5c52c8cad..c653247a0 100644 --- a/gajim/common/optparser.py +++ b/gajim/common/optparser.py @@ -112,7 +112,7 @@ class OptionsParser: self.__tempfile = os.path.join(base_dir, '.' + filename) try: 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: return str(e) try: