From b4aa60892fb60efd57f593006f35f94868a646da Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 5 Feb 2010 22:08:48 +0100 Subject: FlashGot + ClickNLoad Support + Webif. improvm.!! pyLoad FTW !! --- pyLoadCli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyLoadCli.py') diff --git a/pyLoadCli.py b/pyLoadCli.py index 9b65bf2b3..03a44cc02 100755 --- a/pyLoadCli.py +++ b/pyLoadCli.py @@ -431,7 +431,7 @@ if __name__ == "__main__": config = xmlconfig.getConfig() translation = gettext.translation("pyLoadCli", join(abspath(dirname(__file__)), "locale"), languages=[config['general']['language']]) - translation.install(unicode=False if sys.getdefaultencoding() == "ascii" else True) + translation.install(unicode=(False if sys.stdout.encoding == "ascii" else True)) if len(sys.argv) > 1: -- cgit v1.2.3