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.

作者 reingart
收信人 ezio.melotti, reingart
日期 2012-10-28.04:06:09
SpamBayes Score -1.0
Marked as misclassified
Message-id <1351397171.27.0.117750740634.issue16343@psf.upfronthosting.co.za>
In-reply-to
内容
Working in an internationalization proposal <http://python.org.ar/pyar/TracebackInternationalizationProposal>
I've stopped at #9769 where multi byte encodings (like utf-8) is not supported by PyUnicode_FromFormatV()

Beside my proposal, I think utf-8 should be supported for consistency with the other unicode functions, like PyUnicode_FromString() or even unicode_fromformat_arg()

Attached is a patch that:
- enhanced the iterator to detect multibyte sequences, with sanity checks about start & continuation bytes
- replaced unicode_write_cstr with PyUnicode_DecodeUTF8Stateful
- tests

Hope it helps, this is my first patch for cpython and my C skills are a bit rusty, so excuse me if there is any newbie glitch
历史
日期 用户 动作 参数
2012-10-28 04:06:11reingart修改recipients: + reingart, ezio.melotti
2012-10-28 04:06:11reingart修改messageid: <1351397171.27.0.117750740634.issue16343@psf.upfronthosting.co.za>
2012-10-28 04:06:11reingart链接issue16343 messages
2012-10-28 04:06:10reingart创建