summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-06-05 11:43:22 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-06-05 11:43:22 (GMT)
commitf86a5e8a93ab293d4cc00a8f2835d6d2cd3baa69 (patch)
tree9d249e4c06f25885dc668edd529b1a4c802c898a /Misc
parent91c5a34613fb918c79bb372723e10e106ad9a9be (diff)
downloadcpython-f86a5e8a93ab293d4cc00a8f2835d6d2cd3baa69.zip
cpython-f86a5e8a93ab293d4cc00a8f2835d6d2cd3baa69.tar.gz
cpython-f86a5e8a93ab293d4cc00a8f2835d6d2cd3baa69.tar.bz2
Close #11022: TextIOWrapper doesn't call locale.setlocale() anymore
open() and io.TextIOWrapper are now calling locale.getpreferredencoding(False) instead of locale.getpreferredencoding() in text mode if the encoding is not specified. Don't change temporary the locale encoding using locale.setlocale(), use the current locale encoding instead of the user preferred encoding. Explain also in open() documentation that locale.getpreferredencoding(False) is called if the encoding is not specified.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index b8d0928..332e408 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,12 @@ What's New in Python 3.3.0 Beta 1?
Core and Builtins
-----------------
+- Issue #11022: open() and io.TextIOWrapper are now calling
+ locale.getpreferredencoding(False) instead of locale.getpreferredencoding()
+ in text mode if the encoding is not specified. Don't change temporary the
+ locale encoding using locale.setlocale(), use the current locale encoding
+ instead of the user preferred encoding.
+
- Issue #14673: Add Eric Snow's sys.implementation implementation.
Library