Skip to content

Build the git-detected check mark from its code point - #276

Open
sunasrd-byte wants to merge 1 commit into
Codeplain-ai:mainfrom
sunasrd-byte:Fix-PowerShell-5.1-parse-failure-on-the-git-detected-line
Open

Build the git-detected check mark from its code point#276
sunasrd-byte wants to merge 1 commit into
Codeplain-ai:mainfrom
sunasrd-byte:Fix-PowerShell-5.1-parse-failure-on-the-git-detected-line

Conversation

@sunasrd-byte

Copy link
Copy Markdown
Contributor

install.ps1 is UTF-8 without a BOM, so Windows PowerShell 5.1 decodes it
as CP1252, where the literal U+2713 on the "git detected" line becomes a
smart quote that terminates the enclosing string. The script then fails
to parse and installs nothing; only irm ... | iex was unaffected, since
that decodes as UTF-8 over HTTP.

  install.ps1 is UTF-8 without a BOM, so Windows PowerShell 5.1 decodes it
  as CP1252, where the literal U+2713 on the "git detected" line becomes a
  smart quote that terminates the enclosing string. The script then fails
  to parse and installs nothing; only `irm ... | iex` was unaffected, since
  that decodes as UTF-8 over HTTP.
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