[issue6077] Unicode issue with tempfile on Windows
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Fixed with r76593 (py3k) and r76594 (release31-maint) -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6077 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6077] Unicode issue with tempfile on Windows
Changes by Antoine Pitrou pit...@free.fr: -- components: +IO -Library (Lib) priority: - normal stage: - patch review versions: +Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6077 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6077] Unicode issue with tempfile on Windows
Antoine Pitrou pit...@free.fr added the comment: The patch looks ok to me. -- assignee: - amaury.forgeotdarc nosy: +pitrou resolution: - accepted stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6077 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6077] Unicode issue with tempfile on Windows
Amaury Forgeot d'Arc amaur...@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 rep...@bugs.python.org http://bugs.python.org/issue6077 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6077] Unicode issue with tempfile on Windows
New submission from Ugra Dániel daniel.u...@gmail.com: Opening a file with tempfile.TemporaryFile using wt+ mode, then reading content back, will cause reading to stop (without any exception) when encountering byte '0x1a' (aka. Ctrl+Z) on Windows even tough UTF-16 encoding is used. When using built-in open with the same parameters (plus a file name of course) everything works as expected. On Linux this issue does not exists. -- components: Library (Lib) files: UnicodeTest.py messages: 88151 nosy: daniel.ugra severity: normal status: open title: Unicode issue with tempfile on Windows type: behavior versions: Python 3.0 Added file: http://bugs.python.org/file14032/UnicodeTest.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6077 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6077] Unicode issue with tempfile on Windows
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6077 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com