| Summary: | process-css-properties.py fails for some host locales when trying to decode JSON as GBK | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | javalitterboy |
| Component: | WebCore Misc. | Assignee: | Fujii Hironori <Hironori.Fujii> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ap, darin, Hironori.Fujii, sam, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | PC | ||
| OS: | Windows 10 | ||
|
Description
javalitterboy
2023-04-27 03:05:19 PDT
We should specify an encoding (probably UTF-8 or ASCII) when opening the file, so that nothing locale specific happens during the build. Regressed with Python rewrite in https://commits.webkit.org/256414@main. Could you try removing "ยง" in CSSProperties.json? I think this is the simplest solution if it fixes. https://github.com/WebKit/WebKit/blob/b1cc64631025e09fd181bffbb11e292604ab5ad1/Source/WebCore/css/CSSProperties.json#L10467 Other solutions are set env var PYTHONUTF8=1 or "-X utf8" command switch. I didn't read comment#1. It's better idea. I'm going to create a PR. Pull request: https://github.com/WebKit/WebKit/pull/13256 Could you test the patch? Do we need more changes? Committed 263543@main (aad6f77b647e): <https://commits.webkit.org/263543@main> Reviewed commits have been landed. Closing PR #13256 and removing active labels. |