RESOLVED FIXED204493
test262-runner should dump YAML with correct encoding
https://bugs.webkit.org/show_bug.cgi?id=204493
Summary test262-runner should dump YAML with correct encoding
Ross Kirsling
Reported 2019-11-21 23:47:44 PST
It's pretty annoying that Test262's expectations.yaml is filled with lines like this: > 'Test262Error: Expected SameValue(«», «a») to be true' This text garbling does not happen in the terminal output. The issue seems to be that we are encoding to (and decoding) UTF8 an extra time when dumping to (and loading from) file. Indeed, if we remove the `binmode $OUT, ':utf8';` lines in this file, the problem goes away: https://github.com/WebKit/webkit/blob/master/Tools/Scripts/test262/local/lib/perl5/YAML.pm But I'm not sure that we want to fix that library directly? And I have no idea how this can be fixed from Runner.pm itself.
Attachments
Patch (182.73 KB, patch)
2019-11-22 14:11 PST, Ross Kirsling
no flags
Patch (181.87 KB, patch)
2019-11-23 15:51 PST, Ross Kirsling
no flags
Ross Kirsling
Comment 1 2019-11-22 14:11:50 PST
Ross Kirsling
Comment 2 2019-11-22 14:19:23 PST
This is actually pretty hilarious because the Formatted Diff screen seems to perform *yet another* layer of encoding. You can confirm the actual output by viewing the patch directly or visiting the old Diff screen.
Ross Kirsling
Comment 3 2019-11-23 15:51:31 PST
Ross Kirsling
Comment 4 2019-11-26 10:14:10 PST
Ping?
WebKit Commit Bot
Comment 5 2019-11-30 20:20:45 PST
Comment on attachment 384246 [details] Patch Clearing flags on attachment: 384246 Committed r252964: <https://trac.webkit.org/changeset/252964>
WebKit Commit Bot
Comment 6 2019-11-30 20:20:47 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2019-11-30 20:21:18 PST
Note You need to log in before you can comment on or make changes to this bug.