Skip to content

Commit 8b52a7b

Browse files
dnicolodirgommers
authored andcommitted
BUG: pyproject.toml must be UTF-8 encoded
1 parent 013ece8 commit 8b52a7b

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
@@ -646,7 +646,7 @@ def __init__(
646646
self._limited_api = False
647647

648648
# load pyproject.toml
649-
pyproject = tomllib.loads(self._source_dir.joinpath('pyproject.toml').read_text())
649+
pyproject = tomllib.loads(self._source_dir.joinpath('pyproject.toml').read_text(encoding='utf-8'))
650650

651651
# load meson args from pyproject.toml
652652
pyproject_config = _validate_pyproject_config(pyproject)

0 commit comments

Comments
 (0)