From: Martin v. Löwis Date: Wed, 3 Sep 2003 05:15:20 +0000 (+0000) Subject: Catch locale.error as well. Fixes #788378. X-Git-Tag: v2.3.1~91 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=02309684f731fe5afcb9935f921cb9b6cd0f8d78;p=thirdparty%2FPython%2Fcpython.git Catch locale.error as well. Fixes #788378. --- diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py index 0c3ae7f85e14..391be77f53b5 100644 --- a/Lib/idlelib/IOBinding.py +++ b/Lib/idlelib/IOBinding.py @@ -29,7 +29,7 @@ except ImportError: try: import locale locale.setlocale(locale.LC_CTYPE, "") -except ImportError: +except (ImportError, locale.error): pass encoding = "ascii" diff --git a/Misc/NEWS b/Misc/NEWS index ba9684b6f3c3..773923c14063 100644 --- 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.