Re: [Python-ideas] Fix default encodings on Windows

On Mon, Aug 15, 2016, at 09:23, Steve Dower wrote:
Why isn't it already? What's "not feasible" about requiring manual encoding/decoding? Basically your assumption is that people using Python on windows and having to deal with files that contain filename data encoded as bytes are more likely to be dealing with data that is either UTF-8 anyway (coming from Linux or some other platform) or came from the current version of Python (which will encode things in UTF-8 under the change) than they are to deal with data that came from other Windows programs that encoded things in the codepage used by them and by other Windows users in the same country / who speak the same language.

I'm still not sure we're talking about the same thing right now. For `open(path_as_bytes).read()`, are we talking about the way path_as_bytes is passed to the file system? Or the codec used to decide the returned string? Top-posted from my Windows Phone -----Original Message----- From: "Random832" <random832@fastmail.com> Sent: 8/15/2016 6:41 To: "Steve Dower" <steve.dower@python.org>; "Stephen J. Turnbull" <turnbull.stephen.fw@u.tsukuba.ac.jp> Cc: "Victor Stinner" <victor.stinner@gmail.com>; "python-ideas" <python-ideas@python.org> Subject: Re: [Python-ideas] Fix default encodings on Windows On Mon, Aug 15, 2016, at 09:23, Steve Dower wrote:
Why isn't it already? What's "not feasible" about requiring manual encoding/decoding? Basically your assumption is that people using Python on windows and having to deal with files that contain filename data encoded as bytes are more likely to be dealing with data that is either UTF-8 anyway (coming from Linux or some other platform) or came from the current version of Python (which will encode things in UTF-8 under the change) than they are to deal with data that came from other Windows programs that encoded things in the codepage used by them and by other Windows users in the same country / who speak the same language.

I'm still not sure we're talking about the same thing right now. For `open(path_as_bytes).read()`, are we talking about the way path_as_bytes is passed to the file system? Or the codec used to decide the returned string? Top-posted from my Windows Phone -----Original Message----- From: "Random832" <random832@fastmail.com> Sent: 8/15/2016 6:41 To: "Steve Dower" <steve.dower@python.org>; "Stephen J. Turnbull" <turnbull.stephen.fw@u.tsukuba.ac.jp> Cc: "Victor Stinner" <victor.stinner@gmail.com>; "python-ideas" <python-ideas@python.org> Subject: Re: [Python-ideas] Fix default encodings on Windows On Mon, Aug 15, 2016, at 09:23, Steve Dower wrote:
Why isn't it already? What's "not feasible" about requiring manual encoding/decoding? Basically your assumption is that people using Python on windows and having to deal with files that contain filename data encoded as bytes are more likely to be dealing with data that is either UTF-8 anyway (coming from Linux or some other platform) or came from the current version of Python (which will encode things in UTF-8 under the change) than they are to deal with data that came from other Windows programs that encoded things in the codepage used by them and by other Windows users in the same country / who speak the same language.
participants (2)
-
Random832
-
Steve Dower