https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67224
--- Comment #27 from Lewis Hyatt <lhyatt at gmail dot com> --- Created attachment 46620 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46620&action=edit second attempt at posting the patch Sorry, the previous patch I sent doesn't seem to show correctly in Bugzilla. I think probably because the test cases include invalid UTF-8 and also latin1-encoded characters, it may have caused the whole file to be misinterpreted as the wrong encoding? It only affects the test cases but I am sending it here as binary and hoping that it is easier to read then. Thanks!