]> granicus.if.org Git - python/commit
Issue #6697: Check that _PyUnicode_AsString() result is not NULL in textio.c
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 19 May 2010 01:17:01 +0000 (01:17 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 19 May 2010 01:17:01 +0000 (01:17 +0000)
commitf6c578328c419f25dea91425479a6ceeb891b04d
tree5b3cb3aaa49e7f6ccd827b41652829e970a79799
parent306f0100f34c0f5461203065bbe2239a5a325ad6
Issue #6697: Check that _PyUnicode_AsString() result is not NULL in textio.c

The bug may occurs if locale.getpreferredencoding() returns an encoding with a
surrogate (very unlikely!).
Modules/_io/textio.c