Python subprocess universal newlines
Compiling python using MSVC 8.0 makes popen have no support for "universal end of lines', and subprocess gives the following error:
File "e:\Shared\dist-0707\i686.win32\python-2.5.1\lib\subprocess.py", line 615,
in __init__
self.stdout = os.fdopen(c2pread, 'rU', bufsize)
OSError: [Errno 22] Invalid argument
Googling the problem I found a bug description in python, but no solution:
"[Python-bugs-list] [ python-Bugs-788035 ] missing universal newline support in os.popen & friends"http://mail.python.org/pipermail/python-bugs-list/2003-November/020942.html




Leave a comment