You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build generates empty scripts when GraphML contains a UTF-8 BOM #666
I noticed something strange while testing the build command on Windows. I created two identical workflows, but saved one of them with a UTF-8 BOM at the beginning of the GraphML file.
Both workflows passed validation, and the build command reported success. However, the generated files were different. The normal workflow generated its scripts correctly, while the one with the BOM produced empty build.bat, run.bat and debug.bat files.
I also checked how the generator reads the GraphML file. Without the BOM, it detects the node correctly, but with the BOM, it detects zero nodes and still finishes without reporting an error.
It seems the generator isn't handling UTF-8 BOM-prefixed GraphML files correctly.
Steps to reproduce
Create a project using concore init
Make a copy of its workflow.graphml
Add a UTF-8 BOM (EF BB BF) to the beginning of the copied file
Hi! I can take this. The cause is that on Windows open() defaults to cp1252, so the UTF-8 BOM is read as "" and BeautifulSoup finds 0 nodes. mkconcore still exits 0 and writes empty scripts. I'll read the GraphML as utf-8-sig in mkconcore.py, concore inspect and concore validate, and add a test. Opening a PR shortly.
Activity
luqq-md commentedon Nov 9, 2026
@pradeeban sir , should the generator handle UTF-8 BOM files directly or should validation catch this and repsort an error ? Please help on this
yadavchiragg commentedon Nov 16, 2026
Hi! I can take this. The cause is that on Windows open() defaults to cp1252, so the UTF-8 BOM is read as "" and BeautifulSoup finds 0 nodes. mkconcore still exits 0 and writes empty scripts. I'll read the GraphML as utf-8-sig in mkconcore.py,
concore inspectandconcore validate, and add a test. Opening a PR shortly.