diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2020-05-19 12:25:21 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2020-05-22 11:32:55 +0100 |
commit | 50eb22e34337040939182d74d6e69e64830b7835 (patch) | |
tree | 257656c9a25d7de0fdd679168f01032fac508686 /scripts | |
parent | 88cab64fb3088e5c29eb7c7d0bc1d69b8882d720 (diff) | |
download | libvirt-50eb22e34337040939182d74d6e69e64830b7835.tar.gz |
scripts: use UTF-8 for API XML files
The build system will be running in UTF-8 locale, so any content in the
API XML files will also end up being UTF-8, not ISO-8859-1.
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/apibuild.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/apibuild.py b/scripts/apibuild.py index 05a169c30d..b13b5db644 100755 --- a/scripts/apibuild.py +++ b/scripts/apibuild.py @@ -2333,7 +2333,7 @@ class docBuilder: if not quiet: print("Saving XML description %s" % (filename)) output = open(filename, "w") - output.write('<?xml version="1.0" encoding="ISO-8859-1"?>\n') + output.write('<?xml version="1.0" encoding="UTF-8"?>\n') output.write("<api name='%s'>\n" % self.name) output.write(" <files>\n") headers = sorted(self.headers.keys()) |