From 737ee37bccd3a62be844d998a18171ab244e0a37 Mon Sep 17 00:00:00 2001 From: Gilbert Sanchez Date: Tue, 10 Dec 2024 13:43:53 -0800 Subject: [PATCH 1/2] Build-PSBuildModule Compile UTF-8 File We attempt to append UTF-8 encodings later, but the intial file isn't set to that. This should fix it. Signed-off-by: Gilbert Sanchez --- PowerShellBuild/Public/Build-PSBuildModule.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerShellBuild/Public/Build-PSBuildModule.ps1 b/PowerShellBuild/Public/Build-PSBuildModule.ps1 index f2c82f6..e4d99e6 100644 --- a/PowerShellBuild/Public/Build-PSBuildModule.ps1 +++ b/PowerShellBuild/Public/Build-PSBuildModule.ps1 @@ -104,7 +104,7 @@ function Build-PSBuildModule { # Grab the contents of the copied over PSM1 # This will be appended to the end of the finished PSM1 $psm1Contents = Get-Content -Path $rootModule -Raw - '' | Out-File -FilePath $rootModule + '' | Out-File -FilePath $rootModule -Encoding utf8 if ($CompileHeader) { $CompileHeader | Add-Content -Path $rootModule -Encoding utf8 From 5a530b8437d51d6c29167c8d82ee52c62fbc2abe Mon Sep 17 00:00:00 2001 From: Gilbert Sanchez Date: Fri, 28 Feb 2025 20:30:15 -0800 Subject: [PATCH 2/2] Update CHANGELOG.md Signed-off-by: Gilbert Sanchez --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6460d4..b64e6b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## Unreleased + +- [**#71**](https://github.com/psake/PowerShellBuild/pull/71) Compiled modules + are now explicitly created as UTF-8 files. + + ## [0.6.2] 2024-10-06 ### Changed