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: