]> granicus.if.org Git - python/commit
Issue #5108: Handle %s like %S and %R in PyUnicode_FromFormatV(): Call
authorWalter Dörwald <walter@livinglogic.de>
Sun, 3 May 2009 22:36:33 +0000 (22:36 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Sun, 3 May 2009 22:36:33 +0000 (22:36 +0000)
commited960ac404c66be1341fa32e06ff6e2727cea359
tree5996d91bb50783a77ab0fea4be813b990f81a4f6
parent01fce5adc0ca353122a72af905a084ac37ea7bc1
Issue #5108: Handle %s like %S and %R in PyUnicode_FromFormatV(): Call
PyUnicode_DecodeUTF8() once, remember the result and output it in a second
step. This avoids problems with counting UTF-8 bytes that ignores the effect
of using the replace error handler in PyUnicode_DecodeUTF8().
Misc/NEWS
Objects/unicodeobject.c