[New-bugs-announce] [issue3965] 2.6rc2 crashes when trying to open unicode filename with unprintables

Geoff Gilmour-Taylor report at bugs.python.org
Thu Sep 25 17:56:21 CEST 2008


New submission from Geoff Gilmour-Taylor <geoff.gilmour-taylor at cnib.ca>:

In 2.6rc2, when I try to open a file with a unicode filename with a tab
in it, Python crashes on Win2000 and WinXP.  Bytestrings raise an
IOError as expected.  I'm using the Windows ia32 binaries.

C:\>c:\python26\python
Python 2.6rc2 (r26rc2:66507, Sep 18 2008, 14:27:33) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> f = open('c:\temp\temp.txt')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: invalid filename: c:   emp     emp.txt or mode: r
>>> f = open(u'c:\temp\temp.txt')
[[Crash happens here.]]
C:\>

I also get crashes for other unprintables \a \b \f \n \r \v \x03 and so on.

I'm not getting this on 2.5.2 or 3.0rc1.

----------
components: Windows
files: unicodecoredump.txt
messages: 73797
nosy: giltay
severity: normal
status: open
title: 2.6rc2 crashes when trying to open unicode filename with unprintables
versions: Python 2.6
Added file: http://bugs.python.org/file11601/unicodecoredump.txt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3965>
_______________________________________


More information about the New-bugs-announce mailing list