<locale>
: std::collate<wchar_t>
does not respect collation order when compiled with /MD(d) /Zc:wchar_t-
#5236
Labels
bug
Something isn't working
std::collate<wchar_t>::compare()
andstd::collate<wchar_t>::transform()
do not actually perform comparisons or transformations with respect to the collation order when the program is compiled with flags/MD(d) /Zc:wchar_t-
.Test case
https://godbolt.org/z/Kx8z43e71
Compiled with
/MD(d) /Zc:wchar_t-
, this prints:Expected result
Because "Ü" should collate like "Ue" in the German phonebook collation order, this should print (as it does with
/MD /Zc:wchar_t
or/MT /Zc:wchar_t-
):The text was updated successfully, but these errors were encountered: