[issue6077] Unicode issue with tempfile on Windows

Ugra Dániel <report@bugs.python.org> at psf.upfronthosting.co.za Ugra Dániel <report@bugs.python.org> at psf.upfronthosting.co.za
Thu May 21 12:38:01 CEST 2009


New submission from Ugra Dániel <daniel.ugra at 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 <report at bugs.python.org>
<http://bugs.python.org/issue6077>
_______________________________________


More information about the Python-bugs-list mailing list