On Tue, Sep 30, 2008 at 12:07 PM, Simon Cross <[EMAIL PROTECTED]> wrote: > On Tue, Sep 30, 2008 at 7:56 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: >> (since os.getcwdb() is a Unix-only thing). > > I would be happier if all the Unix byte functions existed on Windows > fell back to something like encoding the filenames to/from UTF-8. Then > at least it would be possible for programs to support reading all > files on both Unix and Windows without having to perform some sort of > explicit check to see whether os.getcwdb() and friends are supported.
Actually on Windows the syscalls use the encoding that Microsoft uses -- when using bytes we use the Windows bytes API and when using str we use the Windows wide API. That's the most platform-compatible approach. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com