Skip to content

Commit 6c728bd

Browse files
dnicolodirgommers
authored andcommitted
BUG: Meson introspection data is UTF-8 encoded
1 parent 8b52a7b commit 6c728bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ def build(self) -> None:
818818
def _info(self, name: str) -> Any:
819819
"""Read info from meson-info directory."""
820820
info = self._build_dir.joinpath('meson-info', f'{name}.json')
821-
return json.loads(info.read_text())
821+
return json.loads(info.read_text(encoding='utf-8'))
822822

823823
@property
824824
def _manifest(self) -> DefaultDict[str, List[Tuple[pathlib.Path, str]]]:

0 commit comments

Comments
 (0)