[New-bugs-announce] [issue1047] py3k: corrections for test_subprocess on windows

Amaury Forgeot d'Arc report at bugs.python.org
Wed Aug 29 00:33:09 CEST 2007

New submission from Amaury Forgeot d'Arc:

I join three patches for py3k on Windows:

1/ getargs.diff adds the 'Z' and 'Z#' format specifiers for
PyArg_ParseTuple. They mimic z and z# for unicode strings, by accepting
a Unicode or None (in which case the Py_UNICODE* pointer is set to
NULL). With doc and tests.

2/ subprocess.diff converts file PC/_subprocess.c to unicode. We use the
Unicode version of the win32 api (and Z conversion from previous patch)

3/ stdout.diff: sys.stdout must not convert the line endings, Windows
already does it. 
Without this patch, when redirecting the output of python, the file
contains \r\r\n for each line. (test_subprocess did catch this)

components: Interpreter Core, Windows
files: getargs.diff
messages: 55384
nosy: amaury.forgeotdarc
severity: normal
status: open
title: py3k: corrections for test_subprocess on windows
versions: Python 3.0

Tracker <report at bugs.python.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getargs.diff
Type: application/octet-stream
Size: 4318 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20070828/1700cced/attachment.obj 

More information about the New-bugs-announce mailing list