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 vstinner
Recipients loewis, vinay.sajip, vstinner
Date 2011-11-09.09:49:56
SpamBayes Score 0.00029780195
Marked as misclassified No
Message-id <1320832197.87.0.78033027034.issue13377@psf.upfronthosting.co.za>
In-reply-to
Content
> Why was the change necessary?

First because unicode_decode_call_errorhandler() was called with the wrong argument count:

    1.90 -                    v, &outpos, &out))
    1.91 +                    v, &outpos))

decode_code_page_errors() calls MultiByteToWideChar() which expects a wchar_t* buffer.

Compute the maximum character requires to decode the full string. I prefer to work on a wchar_t* string to only decode surrogate pairs and computer the maximum character once.

decode_code_page_errors() can also be called on a substring of a longer string, decode_code_page_strict() can be called for the other part.
History
Date User Action Args
2011-11-09 09:49:57vstinnersetrecipients: + vstinner, loewis, vinay.sajip
2011-11-09 09:49:57vstinnersetmessageid: <1320832197.87.0.78033027034.issue13377@psf.upfronthosting.co.za>
2011-11-09 09:49:57vstinnerlinkissue13377 messages
2011-11-09 09:49:56vstinnercreate