From 6b536658191158daf6017b62978375345ae62c9f Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 18 Jun 2011 13:21:10 +0200 Subject: fixes setup unicode errors --- module/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module') diff --git a/module/setup.py b/module/setup.py index b865716cc..9cf125bfd 100644 --- a/module/setup.py +++ b/module/setup.py @@ -336,7 +336,7 @@ class Setup(): def set_user(self): translation = gettext.translation("setup", join(self.path, "locale"), languages=["en", self.config["general"]["language"]]) - translation.install(unicode=(True if sys.getfilesystemencoding().startswith("utf") else False)) + translation.install(True) from module.database import DatabaseBackend db = DatabaseBackend(None) @@ -387,7 +387,7 @@ class Setup(): def conf_path(self, trans=False): if trans: translation = gettext.translation("setup", join(self.path, "locale"), languages=[self.config["general"]["language"]]) - translation.install(unicode=(True if sys.getfilesystemencoding().startswith("utf") else False)) + translation.install(True) print _("Setting new configpath, current configuration will not be transfered!") path = self.ask(_("Configpath"), abspath("")) -- cgit v1.2.3