]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Catch locale.error as well. Fixes #788378.
authorMartin v. Löwis <martin@v.loewis.de>
Wed, 3 Sep 2003 05:15:20 +0000 (05:15 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Wed, 3 Sep 2003 05:15:20 +0000 (05:15 +0000)
Lib/idlelib/IOBinding.py
Misc/NEWS

index 0c3ae7f85e1427a70e810e65562e02c22417a345..391be77f53b53249ff51ab3920b13f8073274a1b 100644 (file)
@@ -29,7 +29,7 @@ except ImportError:
 try:
     import locale
     locale.setlocale(locale.LC_CTYPE, "")
-except ImportError:
+except (ImportError, locale.error):
     pass
 
 encoding = "ascii"
index ba9684b6f3c3a1fe6725452e3473aa071cad18bd..773923c14063894496925ce7872f9c9d87fe7df8 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -80,6 +80,8 @@ Library
 IDLE
 ----
 
+- Bug #788378: Handle locale.error.
+
 - Bug #774680: IDLE now does not fail to save the file anymore
   if the Tk buffer is not a Unicode string, yet eol_convention is.