scripts: Read yaml files using utf-8 encoding
By default Windows does not use utf-8 encoding for reading files,
set is explicitly.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
diff --git a/scripts/zephyr_module.py b/scripts/zephyr_module.py
index c604315..6230789 100755
--- a/scripts/zephyr_module.py
+++ b/scripts/zephyr_module.py
@@ -193,7 +193,7 @@
for module_yml in [module_path / MODULE_YML_PATH,
module_path / MODULE_YML_PATH.with_suffix('.yaml')]:
if Path(module_yml).is_file():
- with Path(module_yml).open('r') as f:
+ with Path(module_yml).open('r', encoding='utf-8') as f:
meta = yaml.load(f.read(), Loader=SafeLoader)
try: