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.06388e-07
Marked as misclassified No
Message-id <1267217493.39.0.0858163422602.issue4111@psf.upfronthosting.co.za>
In-reply-to
Content
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:
https://fedoraproject.org/wiki/Features/SystemtapStaticProbes#Python_2
History
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: <1267217493.39.0.0858163422602.issue4111@psf.upfronthosting.co.za>
2010-02-26 20:51:31dmalcolmlinkissue4111 messages
2010-02-26 20:51:31dmalcolmcreate