https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98723
Luca Bacci <luca.bacci at outlook dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |luca.bacci at outlook dot com --- Comment #8 from Luca Bacci <luca.bacci at outlook dot com> --- (In reply to Jonathan Wakely from comment #1) > The Windows behaviour fails to conform to the C and C++ standards. I think > _M_transform should check errno and throw an exception on error (which means > removing the non-throwing exceptions specification from that function). Hi Jonathan! I'm giving it a go, but I have one question: which encoding are the strings passed to _M_transform() / _M_compare() in? (libstdc++-v3/config/locale/generic/collate_members.cc) is it the execution character set? Or is it always UTF-8? I am asking because we have to convert to UTF-16 and call wcsxfrm(). Many thanks, Luca