Skip to content

Commit

Permalink
BUG: pyproject.toml must be UTF-8 encoded
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolodi authored and rgommers committed May 1, 2024
1 parent 013ece8 commit 8b52a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ def __init__(
self._limited_api = False

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

# load meson args from pyproject.toml
pyproject_config = _validate_pyproject_config(pyproject)
Expand Down

0 comments on commit 8b52a7b

Please sign in to comment.