Skip to content

Fix register.ps1 parse error on PowerShell 5.1#7

Open
tectonia wants to merge 1 commit intopatniko:mainfrom
tectonia:fix-register-ps1
Open

Fix register.ps1 parse error on PowerShell 5.1#7
tectonia wants to merge 1 commit intopatniko:mainfrom
tectonia:fix-register-ps1

Conversation

@tectonia
Copy link

Changes:
Add UTF-8 BOM (EF BB BF) to register.ps1.
Fixes #1

Description:
Adds a UTF-8 BOM to register.ps1 so PowerShell 5.1 reads the file with the correct encoding.

Without the BOM, PowerShell 5.1 defaults to Windows-1252 encoding, which misinterprets the UTF-8 ✓ characters in the script. The third byte of each ✓ (0x93) maps to a left double quotation mark (") in Windows-1252, causing cascading parse errors:

The output stream for this command is already redirected.
The string is missing the terminator: ".

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.

register.ps1 is failing

1 participant