From be472524f816a7cfc337f3cb5bf5ebfc72a9946a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 13 Aug 2008 12:41:24 +0200 Subject: [PATCH] Argument for LANG must be string and not None --- tryton/translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/translate.py b/tryton/translate.py index 556dacdd21..1883f54671 100644 --- a/tryton/translate.py +++ b/tryton/translate.py @@ -180,7 +180,7 @@ def setlang(lang=None): else: try: if os.name == 'nt': - os.environ['LANG'] = None + os.environ['LANG'] = '' locale.setlocale(locale.LC_ALL, '') except: logging.getLogger('translate').warn(