Skip to content
Snippets Groups Projects
Unverified Commit d8dea19a authored by Tomasz Maczukin's avatar Tomasz Maczukin Committed by Tomasz Maczukin
Browse files

Merge branch 'powershell-error-regarding-username' into 'master'

Fix support for Unicode variable values when Windows+PowerShell are used

Closes #3413

See merge request gitlab-org/gitlab-runner!960
parent 64e72b2b
No related branches found
No related tags found
No related merge requests found
...@@ -220,6 +220,8 @@ func (b *PsWriter) Finish(trace bool) string { ...@@ -220,6 +220,8 @@ func (b *PsWriter) Finish(trace bool) string {
var buffer bytes.Buffer var buffer bytes.Buffer
w := bufio.NewWriter(&buffer) w := bufio.NewWriter(&buffer)
// write BOM
io.WriteString(w, "\xef\xbb\xbf")
if trace { if trace {
io.WriteString(w, "Set-PSDebug -Trace 2\r\n") io.WriteString(w, "Set-PSDebug -Trace 2\r\n")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment