• Victor Stinner's avatar
    Close #11022: TextIOWrapper doesn't call locale.setlocale() anymore · f86a5e8a
    Victor Stinner yazdı
    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.
    f86a5e8a
Adı
Son kayıt (commit)
Son güncelleme
..
c-api Loading commit data...
data Loading commit data...
distutils Loading commit data...
extending Loading commit data...
faq Loading commit data...
howto Loading commit data...
includes Loading commit data...
install Loading commit data...
library Loading commit data...
packaging Loading commit data...
reference Loading commit data...
tools Loading commit data...
tutorial Loading commit data...
using Loading commit data...
whatsnew Loading commit data...
ACKS.txt Loading commit data...
Makefile Loading commit data...
README.txt Loading commit data...
about.rst Loading commit data...
bugs.rst Loading commit data...
conf.py Loading commit data...
contents.rst Loading commit data...
copyright.rst Loading commit data...
glossary.rst Loading commit data...
license.rst Loading commit data...
make.bat Loading commit data...