• 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
functions.rst 64.3 KB