WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
38027
check-webkit-style complains about non-utf8 data in layout test result
https://bugs.webkit.org/show_bug.cgi?id=38027
Summary
check-webkit-style complains about non-utf8 data in layout test result
Tony Chang
Reported
2010-04-22 20:16:12 PDT
The error is here:
https://bugs.webkit.org/show_bug.cgi?id=37981#c6
I have non-utf8 data in a layout test result (0xa0, a whitespace character). I think this is quite common. I'm not sure what the right fix is here. You could also imagine layout tests that are not utf8.
Attachments
Patch
(23.22 KB, patch)
2010-04-23 19:10 PDT
,
Eric Seidel (no email)
abarth
: review+
commit-queue
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Eric Seidel (no email)
Comment 1
2010-04-23 13:00:07 PDT
The right fix is to treat patch files a binary data, since I now realize they have no encoding. I'll fix the callers and post a patch.
Eric Seidel (no email)
Comment 2
2010-04-23 14:29:51 PDT
This seems wrong. I agree with you that patch files are binary. But in this patch, it appears the -expected.txt file is not utf-8? All output from DumpRenderTree is utf-8 as far as I know. So how did you generate this expected.txt file and why wouldn't it be utf-8?
https://bug-37981-attachments.webkit.org/attachment.cgi?id=54123
Eric Seidel (no email)
Comment 3
2010-04-23 15:31:49 PDT
I have a patch to fix our handling of patch files. Finishing testing now.
Eric Seidel (no email)
Comment 4
2010-04-23 19:10:51 PDT
Created
attachment 54210
[details]
Patch
Adam Barth
Comment 5
2010-04-23 20:15:55 PDT
Comment on
attachment 54210
[details]
Patch WebKitTools/Scripts/webkitpy/common/checkout/scm.py:503 + # as we're passing --name-status which does not output any data. This comment seems gratuitously different than the others. Also, technically, file names (on unix) might not be UTF8 because they are just bytes. I don't think we should worry about that here though. Just more background for the trail of tears. Nice!
WebKit Commit Bot
Comment 6
2010-04-23 21:26:04 PDT
Comment on
attachment 54210
[details]
Patch Rejecting patch 54210 from commit-queue. Failed to run "['WebKitTools/Scripts/test-webkitpy']" exit_code: 1 Last 500 characters of output: cripts/webkitpy/common/prettypatch.py", line 42, in pretty_diff_file pretty_diff = self.pretty_diff(diff) File "/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/webkitpy/common/prettypatch.py", line 60, in pretty_diff return self._executive.run_command(args, input=diff, decode_output=False) TypeError: run_command() got an unexpected keyword argument 'decode_output' ---------------------------------------------------------------------- Ran 385 tests in 5.007s FAILED (errors=3) Full output:
http://webkit-commit-queue.appspot.com/results/1856073
Eric Seidel (no email)
Comment 7
2010-04-24 00:03:52 PDT
Committed
r58210
: <
http://trac.webkit.org/changeset/58210
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug