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]

[patch] Define std::codecvt<char16_t,...> and std::codecvt<char32_t,...>


This adds the two codecvt specializations added by C++11 for UTF-8
conversions.

The functions in src/c++11/codecvt.cc are also needed for the other
new facets such as codecvt_utf8, which I'm still working on.

I had hoped to implement all these facts with iconv, but it's pretty
hard to do for the codecvt_utf8 and similar ones, because of the
requirements to generate/consum a BOM and the switch endianness on the
fly.

Tested x86_64-linux, committed to trunk.

Attachment: patch.txt
Description: Text document


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