Python's open() by default using "system character encoding", which
may vary from system to system (e.g. LOCALE=C aka "ascii" on bare-OS
systems, something on Windows, etc.). But Zephyr files are utf-8, so
read them as such, by explicitly specifying encoding.
This is similar to changes earlier done to another script in
|
||
|---|---|---|
| .. | ||
| extract | ||
| devicetree.py | ||
| extract_dts_includes.py | ||