Bug 223367 - check-webkit-style fails with UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 3450534: invalid start byte on a big patch
Summary: check-webkit-style fails with UnicodeDecodeError: 'utf-8' codec can't decode ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-17 01:30 PDT by Kimmo Kinnunen
Modified: 2021-03-24 01:31 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kimmo Kinnunen 2021-03-17 01:30:51 PDT
kinnunen@Kimmos-iMac-Pro OpenSource % tools/Scripts/check-webkit-style  -g HEAD                
Traceback (most recent call last):
  File "tools/Scripts/check-webkit-style", line 46, in <module>
    sys.exit(CheckWebKitStyle().main())
  File "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/style/main.py", line 159, in main
    patch_checker.check(patch)
  File "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/style/patchreader.py", line 60, in check
    patch_string = string_utils.decode(patch_string, target_type=str)
  File "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/string_utils.py", line 44, in decode
    return data.decode(encoding, errors=errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 3450534: invalid start byte

The patch is relatively big patch in bug 222964.

One can try to simulate the patch also by moving LayoutTests/webgl/{1.0.3,2.0.0} directories around -- unsure if it repros because of lot of files moved, or if there was a particular piece of content that triggers the problem.
Comment 1 Radar WebKit Bug Importer 2021-03-24 01:31:12 PDT
<rdar://problem/75775460>