aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/glad/encoding.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/glad/encoding.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/glad/encoding.patch')
-rw-r--r--vcpkg/ports/glad/encoding.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/glad/encoding.patch b/vcpkg/ports/glad/encoding.patch
new file mode 100644
index 0000000..0497cc7
--- /dev/null
+++ b/vcpkg/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))