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] Various fixes for <codecvt> facets


I’m glad to see someone's on this already, because I had just noticed a major bug in codecvt_16<wchar_t>: it converts to UTF-8, not UTF-16.

You might have gotten to it already, but I’ve included a testcase that reproduces the bug.  It passes with clang -std=c++14 -stdlib=libc++ but fails with either clang -std=c++14 -stdilb=libstdc++ or g++ -std=c++14.  (And it needs some extra magic to work on MSVC.)

Attachment: hola.cpp
Description: Binary data


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