aboutsummaryrefslogtreecommitdiff
path: root/ports/glad/encoding.patch
diff options
context:
space:
mode:
authorPhoebe <20694052+PhoebeHui@users.noreply.github.com>2020-04-07 15:38:52 +0800
committerGitHub <noreply@github.com>2020-04-07 15:38:52 +0800
commitdeca92ce4eec3a3d6808cc11fbaa4456c9a600b0 (patch)
tree4b2417bbd7957b05664273c53b24925418dc8c84 /ports/glad/encoding.patch
parent7f2bb735dfcfa5ac580f9e825c687d017c476c17 (diff)
parent6c4e822611324de4af9c8bb0ef8094e4a9b30a6e (diff)
downloadvcpkg-deca92ce4eec3a3d6808cc11fbaa4456c9a600b0.tar.gz
vcpkg-deca92ce4eec3a3d6808cc11fbaa4456c9a600b0.zip
Merge branch 'master' into supported-version-change
Diffstat (limited to 'ports/glad/encoding.patch')
-rw-r--r--ports/glad/encoding.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/glad/encoding.patch b/ports/glad/encoding.patch
new file mode 100644
index 000000000..0497cc79a
--- /dev/null
+++ b/ports/glad/encoding.patch
@@ -0,0 +1,13 @@
+diff --git a/glad/__main__.py b/glad/__main__.py
+index e7c0544a5..1e10dcc60 100644
+--- a/glad/__main__.py
++++ b/glad/__main__.py
+@@ -32,7 +32,7 @@ def main():
+ if reproducible:
+ logger.info('reproducible build, using packaged specification: \'%s.xml\'', value)
+ try:
+- return spec_cls.from_file(glad.files.open_local(value + '.xml'))
++ return spec_cls.from_file(glad.files.open_local(value + '.xml', encoding='utf-8-sig'))
+ except IOError:
+ raise ValueError('unable to open reproducible copy of {}.xml, '
+ 'try dropping --reproducible'.format(value))