mirror of
https://github.com/python/cpython.git
synced 2026-05-22 04:13:22 -04:00
ed960ac404
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().