diff --git a/compat/build.py b/compat/build.py index 524a6bac4..4681e8561 100644 --- a/compat/build.py +++ b/compat/build.py @@ -4,6 +4,7 @@ from collections import OrderedDict from dataclasses import dataclass, field import itertools +import locale import os from pathlib import Path import pickle @@ -400,7 +401,7 @@ def call_internal_meson(argv, *args, **kwargs): **kwargs, "stdout": subprocess.PIPE, "stderr": subprocess.STDOUT, - "encoding": "utf-8", + "encoding": locale.getpreferredencoding(), } else: silenced_kwargs = kwargs