Aug. 15, 2016
6:38 p.m.
On 15Aug2016 1126, Steve Dower wrote:
My proposal is to remove all use of the *A APIs and only use the *W APIs. That completely removes the (already deprecated) use of bytes as paths. I then propose to change the (unused on Windows) sys.getfsdefaultencoding() to 'utf-8' and handle bytes being passed into filesystem functions by transcoding into UTF-16 and calling the *W APIs.
Of course, I meant sys.getfilesystemencoding() here. The C functions have "FSDefault" in many of the names, which is why I guessed the wrong Python variant. Cheers, Steve