[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-dev
Subject:    Re: [Python-Dev] Patch for an initial support of bytes filename in
From:       "Guido van Rossum" <guido () python ! org>
Date:       2008-09-30 22:05:36
Message-ID: ca471dc20809301505i1151080brb8d34526960c7fc () mail ! gmail ! com
[Download RAW message or body]

On Tue, Sep 30, 2008 at 12:07 PM, Simon Cross
<hodgestar+pythondev@gmail.com> wrote:
> On Tue, Sep 30, 2008 at 7:56 PM, Guido van Rossum <guido@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/)
_______________________________________________
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/python-dev%40progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic