Skip to content

Commit

Permalink
Actually set the default Powershell encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed Oct 19, 2017
1 parent ee81e2e commit 827e0c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bundle-mingw64.ps1
Expand Up @@ -91,6 +91,10 @@ else {
$gnucash = get-childitem -path $target_dir\build | where-object {$_.Name -match "gnucash-[0-9.]+"} | select-object -last 1
}

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

$gnc_config_h = "$target_dir\build\$gnucash\common\config.h"

$major_version = version_item -tag "GNUCASH_MAJOR_VERSION" -path $gnc_config_h
Expand Down

0 comments on commit 827e0c8

Please sign in to comment.