[issue6077] Unicode issue with tempfile on Windows
Amaury Forgeot d'Arc
report at bugs.python.org
Wed May 27 13:23:52 CEST 2009
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
File descriptors wrapped by the new IO module should be opened in binary
mode.
The attached patch changes TemporaryFile and NamedTemporaryFile to
always call os.open() in binary mode; the mode is really used by the
io.open() function.
mkstemp() returns a raw file descriptor and was not changed.
----------
keywords: +needs review, patch
nosy: +amaury.forgeotdarc
Added file: http://bugs.python.org/file14092/tempfile.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6077>
_______________________________________
More information about the Python-bugs-list
mailing list