diff --git a/src/common/optparser.py b/src/common/optparser.py index 20c40ce74..0dc670e6c 100644 --- a/src/common/optparser.py +++ b/src/common/optparser.py @@ -17,6 +17,7 @@ ## import os +import sys import locale from common import gajim from common import i18n @@ -85,6 +86,8 @@ class OptionsParser: def write(self): (base_dir, filename) = os.path.split(self.__filename) + base_dir = base_dir.decode(sys.getfilesystemencoding()) + filename = filename.decode(sys.getfilesystemencoding()) self.__tempfile = os.path.join(base_dir, '.' + filename) try: fd = open(self.__tempfile, 'w')