diff --git a/patacrep/plastex.py b/patacrep/plastex.py index b1c906b2..a17062ce 100644 --- a/patacrep/plastex.py +++ b/patacrep/plastex.py @@ -94,7 +94,10 @@ def parsetex(filename): # /* BEGIN plasTeX patch if oldlocale[0] and oldlocale[1]: - locale.setlocale(locale.LC_TIME, "%s.%s" % oldlocale) + try: + locale.setlocale(locale.LC_TIME, "%s.%s" % oldlocale) + except locale.Error: + pass # Workaround a bug on windows # plasTeX patch END */ # Extraction des données