Message147346
> 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. |
|
Date |
User |
Action |
Args |
2011-11-09 09:49:57 | vstinner | set | recipients:
+ vstinner, loewis, vinay.sajip |
2011-11-09 09:49:57 | vstinner | set | messageid: <1320832197.87.0.78033027034.issue13377@psf.upfronthosting.co.za> |
2011-11-09 09:49:57 | vstinner | link | issue13377 messages |
2011-11-09 09:49:56 | vstinner | create | |
|