Skip to content

Commit

Permalink
process-css-properties.py fails for some host locales when trying to …
Browse files Browse the repository at this point in the history
…decode JSON as GBK

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

Reviewed by Darin Adler and Alexey Proskuryakov.

* Source/WebCore/css/process-css-properties.py:
Open "CSSProperties.json" as UTF-8.

Canonical link: https://commits.webkit.org/263543@main
  • Loading branch information
fujii committed Apr 30, 2023
1 parent d1a6662 commit aad6f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebCore/css/process-css-properties.py
Expand Up @@ -6105,7 +6105,7 @@ def main():
parser.add_argument('--check-unused-grammars-values', action='store_true')
args = parser.parse_args()

with open(args.properties, "r") as properties_file:
with open(args.properties, "r", encoding="utf-8") as properties_file:
properties_json = json.load(properties_file)

parsing_context = ParsingContext(properties_json, defines_string=args.defines, parsing_for_codegen=True, check_unused_grammars_values=args.check_unused_grammars_values, verbose=args.verbose)
Expand Down

0 comments on commit aad6f77

Please sign in to comment.