This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] A QoI problem with filebuf and POD charT != char, wchar_t
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Pétur Runólfsson <peturr02 at ru dot is>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 19 May 2004 21:25:45 +0200
- Subject: Re: [RFC] A QoI problem with filebuf and POD charT != char, wchar_t
- References: <07D05A69A3D0C14FAEA60C3ACE8E5564028F563C@mail.ru.is>
Pétur Runólfsson wrote:
The standard says that codecvt must be obtained "as if" by:
codecvt<charT,char,typename traits::state_type> a_codecvt =
use_facet<codecvt<charT,char,typename traits::state_type> >(getloc());
I see... 27.8.1.1, p5.
Too bad that because of that, a codecvt facet must *always* be present, even
when a reasonable behavior would be otherwise perfectly possible: indeed,
other, "looser", implementations implement that...
Ok, I'll move to something else, for now.
Thanks!
Paolo.