Skip to content

🐛 Ensure that if a file starts with a byte-order mark that it is still parsable#888

Open
joshjennings98 wants to merge 2 commits into
masterfrom
unicode-bom
Open

🐛 Ensure that if a file starts with a byte-order mark that it is still parsable#888
joshjennings98 wants to merge 2 commits into
masterfrom
unicode-bom

Conversation

@joshjennings98
Copy link
Copy Markdown
Contributor

@joshjennings98 joshjennings98 commented Jun 1, 2026

Description

Ensure that if a file starts with a byte-order mark that it is still parsable.

Some tools add invisible byte-order marks to files that are invisible to users but will break parsers that expect the frontmatter to be the first part of the file

https://en.wikipedia.org/wiki/Byte_order_mark

⚠️ This doesn't fix the problem, it just provides some tests that show it ⚠️

Test Coverage

  • This change is covered by existing or additional automated tests.
  • Manual testing has been performed (and evidence provided) as automated testing was not feasible.
  • Additional tests are not required for this change (e.g. documentation update).

Comment thread changes/20260601172808.bugfix Outdated
Co-authored-by: Adrien CABARBAYE <adrien.cabarbaye@arm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants