Skip to content

Commit

Permalink
Set Powershell's output encoding to UTF8.
Browse files Browse the repository at this point in the history
So that Inno Setup's output in the build log is intelligible.
  • Loading branch information
jralls committed Oct 19, 2017
2 parents f118eac + 2577cc5 commit 58616b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions buildserver/build_package.ps1
Expand Up @@ -66,6 +66,10 @@ $env:MSYSTEM = 'MINGW32'
$env:TERM = 'dumb' #Prevent escape codes in the log.
$env:TARGET = "$package-$branch"

if ($PSVersionTable.PSVersion.Major -ge 3) {
$PSDefaultParameterValues['*:Encoding'] = 'utf8'
}

function bash-command() {
param ([string]$command = "")
if (!(test-path -path $target_dir\msys2\usr\bin\bash.exe)) {
Expand Down
2 changes: 1 addition & 1 deletion buildserver/build_periodic.bat
Expand Up @@ -11,4 +11,4 @@ c:\gcdev\mingw\msys\1.0\bin\sh.exe --login c:\gcdev\gnucash-on-windows.git\build
rem maintenance branch build (daily)
c:\gcdev-maint\mingw\msys\1.0\bin\sh.exe --login c:\gcdev-maint\gnucash-on-windows.git\buildserver\build_periodic.sh
rem Development build (daily)
c:\gcdev\mingw\msys\1.0\bin\sh.exe --login c:\gcdev\gnucash-on-windows.git\buildserver\build_periodic.sh
rem This doesn't work any more. c:\gcdev\mingw\msys\1.0\bin\sh.exe --login c:\gcdev\gnucash-on-windows.git\buildserver\build_periodic.sh

0 comments on commit 58616b7

Please sign in to comment.