From a6366f5dae0e8332cfdad0894aa6e5c7fc3faa2c Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 23 Jul 2012 20:16:54 +0100 Subject: python: Set file encoding to utf-8. --- generator/generator_python.ml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/generator/generator_python.ml b/generator/generator_python.ml index dda04146..dc2cd288 100644 --- a/generator/generator_python.ml +++ b/generator/generator_python.ml @@ -567,6 +567,11 @@ initlibguestfsmod (void) (* Generate Python module. *) and generate_python_py () = + (* This has to appear very near the top of the file, before the large + * header. + *) + pr "# coding: utf-8\n"; + generate_header HashStyle LGPLv2plus; pr "\ -- cgit