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

About: Use BOM to decode UTF-16 changelog file #3601

Merged
merged 1 commit into from
Jul 9, 2020

Conversation

ferdnyc
Copy link
Contributor

@ferdnyc ferdnyc commented Jul 9, 2020

If the Windows changelog text file (which is encoded UTF-16LE with a Byte Order Marker at the start) is explicitly opened as utf_16_le, the BOM will be left in the stream, which throws off the parsing of
the first line. Using encoding="utf_16" automatically filters out the BOM after using it to determine the file endianness.

Fixes: A Windows-only issue reported at #3401 (comment)

If the Windows changelog text file (which is encoded UTF-16LE with
a Byte Order Marker at the start) is explicitly opened as 'utf_16_le',
the BOM will be left in the stream, which throws off the parsing of
the first line. Using 'encoding="utf_16"' automatically filters out
the BOM after using it to determine the file endianness.
@ferdnyc ferdnyc merged commit 196f5c7 into OpenShot:develop Jul 9, 2020
@ferdnyc ferdnyc deleted the changelog-bom branch July 9, 2020 02:46
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.

1 participant