From d655a7478fda0f2b10c2ccf950a369604f10a722 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. (cherry picked from commit a6366f5dae0e8332cfdad0894aa6e5c7fc3faa2c) --- generator/generator_python.ml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/generator/generator_python.ml b/generator/generator_python.ml index fbf3151a..79e7cd4c 100644 --- a/generator/generator_python.ml +++ b/generator/generator_python.ml @@ -570,6 +570,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