Force pkgconfig to UTF-8

pull/5387/head
myd7349 6 years ago committed by Jussi Pakkanen
parent 1ff6a8b5d5
commit 5ede0f5ef0
  1. 2
      mesonbuild/modules/pkgconfig.py

@ -267,7 +267,7 @@ class PkgConfigModule(ExtensionModule):
# These always return paths relative to prefix # These always return paths relative to prefix
libdir = PurePath(coredata.get_builtin_option('libdir')) libdir = PurePath(coredata.get_builtin_option('libdir'))
incdir = PurePath(coredata.get_builtin_option('includedir')) incdir = PurePath(coredata.get_builtin_option('includedir'))
with open(fname, 'w') as ofile: with open(fname, 'w', encoding='utf-8') as ofile:
ofile.write('prefix={}\n'.format(self._escape(prefix))) ofile.write('prefix={}\n'.format(self._escape(prefix)))
ofile.write('libdir={}\n'.format(self._escape('${prefix}' / libdir))) ofile.write('libdir={}\n'.format(self._escape('${prefix}' / libdir)))
ofile.write('includedir={}\n'.format(self._escape('${prefix}' / incdir))) ofile.write('includedir={}\n'.format(self._escape('${prefix}' / incdir)))

Loading…
Cancel
Save