[Webkit-unassigned] [Bug 126702] REGRESSION (r160085): check-webkit-style: utf8' codec can't decode byte 0x89 in position 0: invalid start byte

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 14 10:42:20 PST 2014


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


Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #221142|review?, commit-queue?      |review+, commit-queue+
               Flag|                            |




--- Comment #8 from Alexey Proskuryakov <ap at webkit.org>  2014-01-14 10:39:57 PST ---
(From update of attachment 221142)
View in context: https://bugs.webkit.org/attachment.cgi?id=221142&action=review

Seems fine to land to stop bot failures as an emergency fix. Thanks for looking into this!

Longer term, I think that the approach could be further improved. We could skip known non-text files, and we could also handle decoding failures more gracefully.

In fact, we should probably report an explicit error when there is malformed utf-8 in actual text files. I do not know what our compilers do in this case, especially when it's in comments.

> Tools/ChangeLog:8
> +        Resolve regression and remove a FIXME comment that is already fixed.

The final patch doesn't remove any FIXMEs.

> Tools/Scripts/webkitpy/common/system/filesystem.py:201
> +    def open_text_file_for_reading(self, path, errors='strict'):

It's not good that we are calling a function named "open_text_file_for_reading" on all files, not only text ones. This should be fixed.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list