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 eryksun
Recipients BreamoreBoy, JDay, amaury.forgeotdarc, eryksun, loewis, ocean-city, serhiy.storchaka, steve.dower, tim.golden, zach.ware
Date 2015-03-02.02:47:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1425264442.2.0.916025312805.issue4071@psf.upfronthosting.co.za>
In-reply-to
Content
> Can we close this as I'm not aware of any possible way to fix this? 

Windows system and C runtime calls that take paths could be restricted to wide-character APIs, such as calling GetFullPathnameW in this case, or _wexecve instead of execve (issue 23462). Then for bytes paths an extension can call PyUnicode_FSDecoder (PyUnicode_DecodeMBCS). In posxmodule.c this can be handled in the path_converter function.

path_converter
https://hg.python.org/cpython/file/5d4b6a57d5fd/Modules/posixmodule.c#l698

path_converter could be moved to Python/fileutils.c to make it available for use by other modules such as io.
History
Date User Action Args
2015-03-02 02:47:22eryksunsetrecipients: + eryksun, loewis, amaury.forgeotdarc, ocean-city, tim.golden, JDay, BreamoreBoy, zach.ware, serhiy.storchaka, steve.dower
2015-03-02 02:47:22eryksunsetmessageid: <1425264442.2.0.916025312805.issue4071@psf.upfronthosting.co.za>
2015-03-02 02:47:22eryksunlinkissue4071 messages
2015-03-02 02:47:21eryksuncreate