roast icon indicating copy to clipboard operation
roast copied to clipboard

Add tests to make sure that file names roundtrip correctly when they should

Open AlexDaniel opened this issue 9 years ago • 1 comments

See this discussion: https://irclog.perlgeek.de/perl6-dev/2017-01-14#i_13921183

AlexDaniel avatar Jan 14 '17 21:01 AlexDaniel

It was fixed during the recent utf8-c8 rewrite in MoarVM. UTF8-C8 will now only decode stuff as UTF-8 if it's both valid UTF-8 and in NFC. Otherwise, it spits out synthetics to record the original bytes and allow them to be reconstructed. It's worth adding tests for this on filenames, but S32-str/utf8-c8.t also got some new tests covering this.

jnthn avatar Jan 14 '17 23:01 jnthn