Skip to content

Commit

Permalink
compat: Fix compilation when using non-UTF-8 locales (#1122)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunGe-Y authored Nov 13, 2024
1 parent a027f5b commit 89033cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compat/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 89033cd

Please sign in to comment.