Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read over BOM #277

Merged
merged 1 commit into from
Jun 9, 2021
Merged

Read over BOM #277

merged 1 commit into from
Jun 9, 2021

Conversation

arp242
Copy link
Collaborator

@arp242 arp242 commented Jun 9, 2021

Appearantly some UTF-8 files can start with a BOM, so read over that
instead of assuming it's UTF-16. Also move the check for NULL out of the
lexer, so it can remain "UTF-8 clean"; just examine the first few bytes
instead.

Ref: #233 (comment)

Appearantly some UTF-8 files can start with a BOM, so read over that
instead of assuming it's UTF-16. Also move the check for NULL out of the
lexer, so it can remain "UTF-8 clean"; just examine the first few bytes
instead.

Ref: #233 (comment)
@arp242 arp242 mentioned this pull request Jun 9, 2021
@arp242 arp242 merged commit 21a4eb8 into master Jun 9, 2021
@arp242 arp242 deleted the bom2 branch June 9, 2021 11:04
@kmuto kmuto mentioned this pull request Jan 28, 2023
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.

None yet

1 participant