On Tue, Sep 30, 2008 at 12:07 PM, Simon Cross <hodgestar+pythondev at gmail.com> wrote: > On Tue, Sep 30, 2008 at 7:56 PM, Guido van Rossum <guido at python.org> 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/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4