[issue3965] 2.6rc2 crashes when trying to open unicode filename with unprintables

Amaury Forgeot d'Arc report at bugs.python.org
Thu Sep 25 19:26:47 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

Confirmed here. This also happens on Windows when the mode is invalid:
    open(u"foobar", "rr")

Here is a patch, please review.

The problem does not affect py3k because open() is used in place of
fopen(), and the mode string is parsed differently.

----------
keywords: +needs review, patch
nosy: +amaury.forgeotdarc
priority:  -> release blocker
Added file: http://bugs.python.org/file11603/invalid_filename.patch

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


More information about the Python-bugs-list mailing list