[PATCH] codecvt<wchar_t, char, mbstate_t> support for UTF-8

Nathan Myers ncm-nospam@cantrip.org
Sun Jan 26 18:36:00 GMT 2003


On Sun, Jan 26, 2003 at 05:08:23PM -0000, P?tur Run?lfsson wrote:
> This patch changes codecvt<wchar_t, char, mbstate_t> to use MB_CUR_MAX to
> determine the return values of do_encoding() and do_max_length(). With this
> patch the return values should be correct for stateless encodings (in
> particular for UTF-8 and single-byte encodings such as ISO-8859-1).

Am I mistaken in thinking that this introduces even more thread-unsafe 
code sequences into the library?

Nathan Myers
ncm-nospam@cantrip.org



More information about the Libstdc++ mailing list