gnucash-on-windows master: Actually set the default Powershell encoding.

John Ralls jralls at code.gnucash.org
Thu Oct 19 19:38:10 EDT 2017


Updated	 via  https://github.com/Gnucash/gnucash-on-windows/commit/827e0c82 (commit)
	from  https://github.com/Gnucash/gnucash-on-windows/commit/ee81e2ec (commit)



commit 827e0c828aea0fd8b0b8867b45c9aabc8df1b02d
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Oct 19 16:37:49 2017 -0700

    Actually set the default Powershell encoding.

diff --git a/bundle-mingw64.ps1 b/bundle-mingw64.ps1
index 2f26ad0..310941e 100644
--- a/bundle-mingw64.ps1
+++ b/bundle-mingw64.ps1
@@ -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



Summary of changes:
 bundle-mingw64.ps1 | 4 ++++
 1 file changed, 4 insertions(+)



More information about the gnucash-changes mailing list