From 7f0787f7c31f3b4e5f82eceabd8ca9d23375ac06 Mon Sep 17 00:00:00 2001 From: bernat Date: Fri, 10 Sep 2004 15:53:24 +0200 Subject: [PATCH] Hack de la mort qui tue pour ne pas gerer les problemes d'encodage darcs-hash:20040910135324-d1718-60927f243aabe62f38387fb3d696e188b757cf66.gz --- gestion/whos.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gestion/whos.py b/gestion/whos.py index 056c8d67..d7cd8625 100755 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -36,6 +36,15 @@ d'historique affich """ +try: + import sys,locale + + loc = locale.getdefaultlocale() + if loc[1]: + sys.reallysetdefaultencoding(loc[1]) +except: + pass + from ldap_crans import is_actif , crans_ldap, ann_scol, crans from affich_tools import *