[Webkit-unassigned] [Bug 204493] New: test262-runner should dump YAML with correct encoding

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 21 23:47:44 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=204493

            Bug ID: 204493
           Summary: test262-runner should dump YAML with correct encoding
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ross.kirsling at sony.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191122/cdcd121b/attachment-0001.htm>


More information about the webkit-unassigned mailing list