]> granicus.if.org Git - python/commit
Issue #6697: _lsprof: normalizeUserObj() doesn't encode/decode (UTF-8) the
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 20 Jun 2011 12:59:53 +0000 (14:59 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 20 Jun 2011 12:59:53 +0000 (14:59 +0200)
commit7edb5dfcbc815e2479e4c68051bf1805d1c9348d
tree6cb46ecc2e28393bfb5db9a4b194d8fb3609d53a
parent99563b1df835218fd61fe1c86930b49dd55044be
Issue #6697: _lsprof: normalizeUserObj() doesn't encode/decode (UTF-8) the
module name anymore, only work on unicode strings. Therefore it doesn't
truncate module names with embedded NUL characters, or fail if the module name
contains surrogate characters (UTF-8 encoder fails on a surrogate character).

Patch written by Alexander Belopolsky.
Modules/_lsprof.c