diff options
-rw-r--r-- | .pylintrc | 1 | ||||
-rwxr-xr-x | mesonbuild/scripts/env2mfile.py | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -76,7 +76,6 @@ disable= unnecessary-dict-index-lookup, unnecessary-lambda, unnecessary-lambda-assignment, - unspecified-encoding, unsubscriptable-object, unused-argument, unused-variable, diff --git a/mesonbuild/scripts/env2mfile.py b/mesonbuild/scripts/env2mfile.py index fb92a5e..58dda93 100755 --- a/mesonbuild/scripts/env2mfile.py +++ b/mesonbuild/scripts/env2mfile.py @@ -193,7 +193,7 @@ def detect_cross_debianlike(options: T.Any) -> MachineInfo: def write_machine_file(infos: MachineInfo, ofilename: str, write_system_info: bool) -> None: tmpfilename = ofilename + '~' - with open(tmpfilename, 'w') as ofile: + with open(tmpfilename, 'w', encoding='utf-8') as ofile: ofile.write('[binaries]\n') ofile.write('# Compilers\n') for langname in sorted(infos.compilers.keys()): |