[PATCH] Various fixes for <codecvt> facets

dawn.on.the.edge lorehead@zoho.com
Fri Mar 17 21:01:00 GMT 2017


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.)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hola.cpp
Type: application/octet-stream
Size: 2087 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20170317/045b42e8/attachment.obj>


More information about the Libstdc++ mailing list