[issue37413] Deprecate sys._enablelegacywindowsfsencoding()

Steve Dower report at bugs.python.org
Wed Feb 12 04:38:30 EST 2020


Steve Dower <steve.dower at python.org> added the comment:

I think we can deprecate it but leave it there - the original idea (courtesy of Guido) was to enable apps to transition to the change on their timeline, but it certainly should not be considered a core CPython feature for the rest of time.

I don't have a problem with Mercurial using it, though. The risk was that libraries would use it, which is somewhat helped by the fact that it doesn't work reliably if you don't call it early enough :)

On the console encoding, I haven't heard of any issues either. Deprecating that environment variable is also fine, in my opinion.

Neither of these flags need to be their own special initialisation option. Embedders have always had other (better) ways to change these settings - unfortunately, PEP 587 didn't spend long enough gathering requirements before being implemented to avoid committing these design flaws...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37413>
_______________________________________


More information about the Python-bugs-list mailing list