Could we perhaps redefine bytes paths on Windows as utf8 and use Unicode everywhere internally?

I really don't like the idea of not being able to use bytes in cross platform code. Unless it's become feasible to use Unicode for lossless filenames on Linux - last I heard it wasn't.

Top-posted from my Windows Phone

From: Victor Stinner
Sent: ‎2/‎9/‎2016 5:05
To: Paul Moore
Cc: Python Dev
Subject: Re: [Python-Dev] Windows: Remove support of bytes filenames in theos module?

2016-02-08 19:26 GMT+01:00 Paul Moore <p.f.moore@gmail.com>:
> On 8 February 2016 at 14:32, Victor Stinner <victor.stinner@gmail.com> wrote:
>> Since 3.3, functions of the os module started to emit
>> DeprecationWarning when called with bytes filenames.
>
> Everywhere? Or just on Windows? I can't tell from your email and I
> don't have a Unix system to hand to check.

I propose to only drop support for bytes filenames on Windows.

Victor
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/steve.dower%40python.org