Catch locale.error as well. Fixes #788378.
| author |
Martin v. Löwis <martin@v.loewis.de> |
| date |
Wed, 03 Sep 2003 05:15:20 +0000 |
| parents |
1793b65a6230 |
| children |
6790cf785f8c |
| files |
Lib/idlelib/IOBinding.py Misc/NEWS |
| diffstat |
2 files changed, 3 insertions(+), 1 deletions(-)
[+]
|
line diff
--- a/Lib/idlelib/IOBinding.py Wed Sep 03 04:53:17 2003 +0000
+++ b/Lib/idlelib/IOBinding.py Wed Sep 03 05:15:20 2003 +0000
@@ -29,7 +29,7 @@
try:
import locale
locale.setlocale(locale.LC_CTYPE, "")
-except ImportError:
+except (ImportError, locale.error):
pass
encoding = "ascii"
--- a/Misc/NEWS Wed Sep 03 04:53:17 2003 +0000
+++ b/Misc/NEWS Wed Sep 03 05:15:20 2003 +0000
@@ -80,6 +80,8 @@
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.