KhronosGroup / glslang

Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator.
Other
2.9k stars 816 forks source link

Support files with UTF8BOM character #3543

Closed SteveUrquhart closed 3 months ago

SteveUrquhart commented 3 months ago

This PR allows glslangvalidator to consume the byte-order mark (BOM) when it appears at the start of a text stream. The Unicode spec, Version 9.0, Section 23.8, reads: "Systems that use the byte order mark must recognize when an initial U+FEFF signals the byte order. In those cases, it is not part of the textual content and should be removed before processing,"

CLAassistant commented 3 months ago

CLA assistant check
All committers have signed the CLA.

arcady-lunarg commented 3 months ago

This would fix #425.