Browse Source

Correction d'un bug sous windows

L'exception "Unsupported locale" était levée
pull/55/head
Luthaf 11 years ago
parent
commit
b20d6c8162
  1. 5
      patacrep/plastex.py

5
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

Loading…
Cancel
Save