Skip to content

Commit 70b6023

Browse files
fix(Documentation): Add explicit UTF-8 encoding to build.py
Add encoding parameter to source_file.read_text() call for consistency with other file reads in the same script and to prevent potential encoding issues on different platforms. Co-authored-by: Tahsin Türker Mutlugün <Tahsin.Mutlugun@analog.com>
1 parent e80a5a7 commit 70b6023

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Documentation/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def parse_example_info(source_file: Path) -> ExampleInfo:
3030
example_details = "No details"
3131
example_description = "No description"
3232
expr = re.compile(r"(@brief|@details)\s+([\s\S]*?)(?=\n\s*\*\s*@|\n\s*\*)")
33-
for match in expr.finditer(source_file.read_text()):
33+
for match in expr.finditer(source_file.read_text(encoding="utf-8")):
3434
tag, value = match.groups()
3535
match tag:
3636
case "@brief":

0 commit comments

Comments
 (0)