I'm not sure if libcxx is asserting UTF-8 here; but on Windows the full char value is always passed through in its entirety, since the default codepage is something like Windows-1252. The replacement character is only used for non-chars there; and that should be a more portable test everywhere.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Committed r339213
(If there are changes requested I'll do them in a follow up commit)