From 64333251cfc7dd019ef2bb1ca9f090c9d11bba0d Mon Sep 17 00:00:00 2001 From: glondu Date: Sun, 9 Apr 2006 06:40:00 +0200 Subject: [PATCH] Quand aucune locale n'est dfinie, on veut utiliser ISO-8859-15 et non ANSI_X3.4-1968. darcs-hash:20060409044000-68412-a870d8b22933e5df231361b527128315ee67bb90.gz --- gestion/affich_tools.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gestion/affich_tools.py b/gestion/affich_tools.py index 075ace9b..b3df3832 100755 --- a/gestion/affich_tools.py +++ b/gestion/affich_tools.py @@ -16,6 +16,10 @@ try: except: encoding = sys.stdin.encoding or "ISO-8859-15" +# Si aucune locale n'est définie, on se met en ISO-8859-15 +if encoding == "ANSI_X3.4-1968": + encoding = "ISO-8859-15" + if 'TERM' in os.environ and os.environ['TERM'] != 'unknown': el = os.popen('tput cr ; tput el').read() else: