Re: [Python-Dev] Support byte string API of Windows in Python3?

2010-04-20 Thread Martin v. Löwis
Amaury reopened my issue #8393 subprocess: support undecodable current working directory on POSIX OS because It does not work on Windows (bytes are rejected). I see. I'd like to know whether that's an incompatible change. We shouldn't make incompatible changes in that matter. However, if you

[Python-Dev] Support byte string API of Windows in Python3?

2010-04-19 Thread Victor Stinner
Hi, I'm working on surrogates in filenames on Linux (more generally on BSD and UNIX OS) to support undecodable filenames, see PEP 383. Amaury told me that I only fixed the non-Windows versions (I fixed subprocess about the current directory and _ctypes.dlopen()), but it doesn't work on

Re: [Python-Dev] Support byte string API of Windows in Python3?

2010-04-19 Thread Victor Stinner
Le lundi 19 avril 2010 11:33:58, Victor Stinner a écrit : I'm working on surrogates in filenames on Linux (...) Related issues: #8391: os.execvpe() doesn't support surrogates in env #8393: subprocess: support undecodable current working directory on POSIX OS #8394: ctypes.dlopen() doesn't

Re: [Python-Dev] Support byte string API of Windows in Python3?

2010-04-19 Thread Antoine Pitrou
Victor Stinner victor.stinner at haypocalc.com writes: It's a choice, I didn't want to patch Windows because I know that Windows use unicode internally. I consider that developers using Python3 should use unicode on Windows, and byte or unicode+surrogates on other OS. I think both

Re: [Python-Dev] Support byte string API of Windows in Python3?

2010-04-19 Thread Martin v. Löwis
Antoine Pitrou wrote: Victor Stinner victor.stinner at haypocalc.com writes: It's a choice, I didn't want to patch Windows because I know that Windows use unicode internally. I consider that developers using Python3 should use unicode on Windows, and byte or unicode+surrogates on other OS.

Re: [Python-Dev] Support byte string API of Windows in Python3?

2010-04-19 Thread Martin v. Löwis
I'm working on surrogates in filenames on Linux (more generally on BSD and UNIX OS) to support undecodable filenames, see PEP 383. Amaury told me that I only fixed the non-Windows versions (I fixed subprocess about the current directory and _ctypes.dlopen()), but it doesn't work on Windows.

Re: [Python-Dev] Support byte string API of Windows in Python3?

2010-04-19 Thread Neil Hodgson
Victor Stinner: It's a choice, I didn't want to patch Windows because I know that Windows use unicode internally. I consider that developers using Python3 should use unicode on Windows, and byte or unicode+surrogates on other OS. The Win32 byte string APIs convert their inputs to Unicode

Re: [Python-Dev] Support byte string API of Windows in Python3?

2010-04-19 Thread Victor Stinner
Le lundi 19 avril 2010 22:55:39, vous avez écrit : Can you please elaborate what the specific issue is? Amaury reopened my issue #8393 subprocess: support undecodable current working directory on POSIX OS because It does not work on Windows (bytes are rejected). I completely fail to see what