This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] codecvt<wchar_t, char, mbstate_t> support for UTF-8
- From: Nathan Myers <ncm-nospam at cantrip dot org>
- To: libstdc++ at gcc dot gnu dot org
- Date: Sun, 26 Jan 2003 10:36:10 -0800
- Subject: Re: [PATCH] codecvt<wchar_t, char, mbstate_t> support for UTF-8
- References: <07D05A69A3D0C14FAEA60C3ACE8E5564028F550A@nike.hir.is>
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