diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-11-23 15:33:40 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-11-23 15:33:40 +0530 |
commit | 03cc991f4f5706d94032963483387642e6b01217 (patch) | |
tree | a1f46d24d43a4d170441fb9d065baa31636476a5 /mesonbuild/mesonlib.py | |
parent | 587a0bb3d14addcacd62282a46957b86d582f1be (diff) | |
download | meson-03cc991f4f5706d94032963483387642e6b01217.zip meson-03cc991f4f5706d94032963483387642e6b01217.tar.gz meson-03cc991f4f5706d94032963483387642e6b01217.tar.bz2 |
configure_file: Use utf-8 to write configured file
Closes #1085
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r-- | mesonbuild/mesonlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index b92be5f..4d9cc69 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -303,7 +303,7 @@ def do_conf_file(src, dst, confdata): replace_if_different(dst, dst_tmp) def dump_conf_header(ofilename, cdata): - with open(ofilename, 'w') as ofile: + with open(ofilename, 'w', encoding='utf-8') as ofile: ofile.write('''/* * Autogenerated by the Meson build system. * Do not edit, your changes will be lost. |