utf8.patch 986 B

1234567891011121314151617181920212223
  1. diff --git a/glad/__main__.py b/glad/__main__.py
  2. index 4b01eb16..1dbae4b0 100644
  3. --- a/glad/__main__.py
  4. +++ b/glad/__main__.py
  5. @@ -40,7 +40,7 @@ def get_spec(value, reproducible=False):
  6. if reproducible:
  7. logger.info('reproducible build, using packaged specification: \'%s.xml\'', value)
  8. try:
  9. - return spec_cls.from_file(glad.files.open_local(value + '.xml'))
  10. + return spec_cls.from_file(glad.files.open_local(value + '.xml', 'rb'))
  11. except IOError:
  12. raise ValueError('unable to open reproducible copy of {}.xml, '
  13. 'try dropping --reproducible'.format(value))
  14. diff --git a/glad/files/gl.xml b/glad/files/gl.xml
  15. index 60696d62..d5f33ba2 100644
  16. --- a/glad/files/gl.xml
  17. +++ b/glad/files/gl.xml
  18. @@ -1,4 +1,4 @@
  19. -<?xml version="1.0" encoding="UTF-8"?>
  20. +<?xml version="1.0" encoding="UTF-8"?>
  21. <registry>
  22. <comment>
  23. Copyright 2013-2020 The Khronos Group Inc.