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

Encode modes file in UTF8 #4791

Merged
merged 3 commits into from
Aug 27, 2023
Merged

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Aug 26, 2023

Description

I noticed that PowerShell 5 (which is the version used in CI) encodes files using UTF16-LE when doing echo foo > xd. This doesn't happen in PowerShell 7 which I used for local testing. For the built installer, that shouldn't change anything, since it ignores lines that contain junk and the release modes file is empty.

Since using Out-File with -Encoding Utf8 will result in a file encoded in UTF8 with BOM, I used ASCII (which is fine here).

CHANGELOG.md Outdated Show resolved Hide resolved
@pajlada pajlada merged commit 15bd72e into Chatterino:master Aug 27, 2023
15 of 16 checks passed
@Nerixyz Nerixyz deleted the fix/ps-encoding branch August 27, 2023 10:57
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