mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-21 19:02:25 +00:00
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>
This commit is contained in:
parent
88cab64fb3
commit
50eb22e343
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user