aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-11-23 15:33:40 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-11-23 15:33:40 +0530
commit03cc991f4f5706d94032963483387642e6b01217 (patch)
treea1f46d24d43a4d170441fb9d065baa31636476a5
parent587a0bb3d14addcacd62282a46957b86d582f1be (diff)
downloadmeson-03cc991f4f5706d94032963483387642e6b01217.zip
meson-03cc991f4f5706d94032963483387642e6b01217.tar.gz
meson-03cc991f4f5706d94032963483387642e6b01217.tar.bz2
configure_file: Use utf-8 to write configured file
Closes #1085
-rw-r--r--mesonbuild/mesonlib.py2
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.