A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-October/082707.html below:

[Python-Dev] Patch for an initial support of bytes filename in Python3

[Python-Dev] Patch for an initial support of bytes filename in Python3 [Python-Dev] Patch for an initial support of bytes filename in Python3Guido van Rossum guido at python.org
Wed Oct 1 00:05:36 CEST 2008
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/)
More information about the Python-Dev mailing list

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