diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-07-23 20:16:54 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-08-05 21:38:31 +0100 |
commit | d655a7478fda0f2b10c2ccf950a369604f10a722 (patch) | |
tree | 38c57922a46bfcf414ca5e0d3a188aeb5a8e4064 | |
parent | 470be3e24e43eea9221669decaac1a633baf8171 (diff) | |
download | libguestfs-d655a7478fda0f2b10c2ccf950a369604f10a722.tar.gz libguestfs-d655a7478fda0f2b10c2ccf950a369604f10a722.tar.xz libguestfs-d655a7478fda0f2b10c2ccf950a369604f10a722.zip |
python: Set file encoding to utf-8.
(cherry picked from commit a6366f5dae0e8332cfdad0894aa6e5c7fc3faa2c)
-rw-r--r-- | generator/generator_python.ml | 5 |
1 files changed, 5 insertions, 0 deletions
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 "\ |