Commit f15ec3d6 authored by Martin v. Löwis's avatar Martin v. Löwis

Catch locale.error as well. Fixes #788378. Will backport to 2.3.

parent 774a97f8
...@@ -29,7 +29,7 @@ except ImportError: ...@@ -29,7 +29,7 @@ except ImportError:
try: try:
import locale import locale
locale.setlocale(locale.LC_CTYPE, "") locale.setlocale(locale.LC_CTYPE, "")
except ImportError: except (ImportError, locale.error):
pass pass
encoding = "ascii" encoding = "ascii"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment