summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_intrinsics_h.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_intrinsics_h.py')
-rw-r--r--src/compiler/nir/nir_intrinsics_h.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_intrinsics_h.py b/src/compiler/nir/nir_intrinsics_h.py
index 8a4f0d501e6..8abc6a8626d 100644
--- a/src/compiler/nir/nir_intrinsics_h.py
+++ b/src/compiler/nir/nir_intrinsics_h.py
@@ -53,7 +53,7 @@ def main():
path = os.path.join(args.outdir, 'nir_intrinsics.h')
with open(path, 'wb') as f:
- f.write(Template(template).render(INTR_OPCODES=INTR_OPCODES))
+ f.write(Template(template, output_encoding='utf-8').render(INTR_OPCODES=INTR_OPCODES))
if __name__ == '__main__':
main()