[schema-gen] fix Windows: ensure UTF-8 encoding when reading component files (#13952)

This commit is contained in:
Guillermo Ruffino
2026-02-12 13:23:59 -03:00
committed by GitHub
parent 8a08c688f6
commit 7b251dcc31

View File

@@ -369,7 +369,7 @@ def get_logger_tags():
"api.service",
]
for file in CORE_COMPONENTS_PATH.rglob("*.cpp"):
data = file.read_text()
data = file.read_text(encoding="utf-8")
match = pattern.search(data)
if match:
tags.append(match.group(1))