Changeset 293307 in webkit
- Timestamp:
- Apr 24, 2022, 2:16:48 PM (4 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/generate-automation-atom.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r293299 r293307 1 2022-04-24 Daniel Kolesa <dkolesa@igalia.com> 2 3 Use utf-8 for text mode files in generate-automation-atom.py 4 https://bugs.webkit.org/show_bug.cgi?id=239542 5 6 Reviewed by Adrian Perez de Castro. 7 8 At least with older versions of python (3.6), this will otherwise 9 be ascii, which will break input files that contain non-ascii 10 characters, e.g. Source/WebKit/UIProcess/Automation/atoms/FindNodes.js 11 12 * Scripts/generate-automation-atom.py: 13 (main): 14 1 15 2022-04-23 Wenson Hsieh <wenson_hsieh@apple.com> 2 16 -
trunk/Source/WebKit/Scripts/generate-automation-atom.py
r290890 r293307 76 76 utils = os.path.join(os.path.dirname(input), "utils.js") 77 77 78 with open(input, "r" ) as fd:78 with open(input, "r", encoding="utf-8") as fd: 79 79 input_data = fd.read() 80 80 … … 88 88 input_data = input_data.replace('"use strict";\n', '"use strict";\n\n' + "\n".join(utils_data)) 89 89 90 with open(output, "w" ) as fd:90 with open(output, "w", encoding="utf-8") as fd: 91 91 fd.write(input_data) 92 92
Note:
See TracChangeset
for help on using the changeset viewer.