This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]