pywrap icon indicating copy to clipboard operation
pywrap copied to clipboard

add support to include files with BOM character

Open efferre79 opened this issue 1 year ago • 1 comments

some upstream opencascade files include a BOM character at the beginning which leads to an error when parsing the file by clang

This will make out-of-date two other OCP PRs https://github.com/CadQuery/OCP/pull/134 and https://github.com/CadQuery/OCP/pull/135. The proposed solution here doesn't require to patch the opencascade include files which might come also from the user system.

efferre79 avatar Mar 25 '24 16:03 efferre79

this fixes errors such as:

[W 240324 22:27:18 translation_unit:58] dummy.cxx:12:1: error: unexpected character <U+FEFF>

during OCP parsing of headers

efferre79 avatar Mar 28 '24 11:03 efferre79