aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/wrap
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-03-01 19:06:30 -0500
committerEli Schwartz <eschwartz@archlinux.org>2022-03-01 21:42:52 -0500
commit4934b9968aefb69a09d4629b766a1c720c5fa722 (patch)
tree58b1d64e96e52c46cef86373a4b56aa6fb220e68 /mesonbuild/wrap
parenta6e08e8fa7052c776989bf9410b87bf4d1f2ad49 (diff)
downloadmeson-4934b9968aefb69a09d4629b766a1c720c5fa722.zip
meson-4934b9968aefb69a09d4629b766a1c720c5fa722.tar.gz
meson-4934b9968aefb69a09d4629b766a1c720c5fa722.tar.bz2
fix missing encodings
These were caught by the testsuite erroring out with a fatal EncodingWarning due to the previous commit. Fixes #9996
Diffstat (limited to 'mesonbuild/wrap')
-rw-r--r--mesonbuild/wrap/wrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py
index 62ccc14..a42a734 100644
--- a/mesonbuild/wrap/wrap.py
+++ b/mesonbuild/wrap/wrap.py
@@ -121,7 +121,7 @@ class PackageDefinition:
def parse_wrap(self) -> None:
try:
config = configparser.ConfigParser(interpolation=None)
- config.read(self.filename)
+ config.read(self.filename, encoding='utf-8')
except configparser.Error as e:
raise WrapException(f'Failed to parse {self.basename}: {e!s}')
self.parse_wrap_section(config)