This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dmalcolm
Recipients belopolsky, bretthoerner, chrismiles, danchr, dmalcolm, glyph, jbaker, jcea, laca, mjw, movement, rhettinger, robert.kern, ronaldoussoren, sirg3, skip.montanaro, twleung, wsanchez
Date 2010-02-26.20:51:28
SpamBayes Score 5.0638755e-07
Marked as misclassified No
Message-id <>
Attached is the patch I'm currently applying in Fedora 13 to Python 3.

The patch is actually against the 3.1.1 tarball, rather than SVN; sorry (swamped with post-pycon tasks here), as that's what I've been testing this work against.

The patch is somewhat different to the Python 2 case, in that the filename and module name are stored internally by Python as unicode.  The markers convert these to UTF8 for the case when the markers are in use by an active probe.  Unfortunately it's now possible for this to fail (e.g. low memory).

An example of using this for a non-Latin 1 script can be seen towards the end of:
Date User Action Args
2010-02-26 20:51:33dmalcolmsetrecipients: + dmalcolm, skip.montanaro, rhettinger, jcea, ronaldoussoren, belopolsky, wsanchez, movement, glyph, bretthoerner, laca, twleung, jbaker, robert.kern, sirg3, chrismiles, danchr, mjw
2010-02-26 20:51:33dmalcolmsetmessageid: <>
2010-02-26 20:51:31dmalcolmlinkissue4111 messages
2010-02-26 20:51:31dmalcolmcreate