This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steve.dower
Recipients JGoutin, lemburg, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2017-01-13.14:16:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1484317000.53.0.731563254539.issue29241@psf.upfronthosting.co.za>
In-reply-to
Content
Windows doesn't use the fs encoding at all until Python code requests/provides something in bytes. Except for the caching in fsencode/fsdecode, there's no problem setting it once at the start of your program (and it can only be set once - there's no parameter and it cannot be undone).

What I'm most interested in is whether caching the encoding in fsencode/fsdecode is actually an optimization - if not, remove it, and if so make a way to reset it. I'll get around to this sooner or later but I don't want to stop someone else from doing it.
History
Date User Action Args
2017-01-13 14:16:40steve.dowersetrecipients: + steve.dower, lemburg, paul.moore, vstinner, tim.golden, zach.ware, JGoutin
2017-01-13 14:16:40steve.dowersetmessageid: <1484317000.53.0.731563254539.issue29241@psf.upfronthosting.co.za>
2017-01-13 14:16:40steve.dowerlinkissue29241 messages
2017-01-13 14:16:40steve.dowercreate