[RFC 0/2] C++11 codecvt specializations.
Tom Tromey
tromey@redhat.com
Tue Apr 29 14:09:00 GMT 2014
Rüdiger> In any case the standard code conversion facilities
Rüdiger> ([locale.stdcvt]) are only defined with UCS2 and UCS4 in mind
Rüdiger> depending on the type. So I guess this could be done through a
Rüdiger> template check and if wchar_t is two byte it's treated as UCS2.
I don't think you can assume that, at least not if you want
interoperability with the C library's notion of wchar_t.
You can check __STDC_ISO_10646__, but we found some system that doesn't
define this. See gdb's "gdb_wchar.h"; though if you really want to dig
up the details I think you'll have to search the (gdb-patches) mailing
list archives.
I can't speak to locale.stdcvt though.
Rüdiger> btw. your FOSDEM talk about GDB was very interesting!
Thanks, I appreciate that!
Tom
More information about the Libstdc++
mailing list