Skip to content

Commit

Permalink
Build-PSBuildModule Compile UTF-8 File
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
HeyItsGilbert authored Dec 10, 2024
1 parent 5554b43 commit 737ee37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PowerShellBuild/Public/Build-PSBuildModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 737ee37

Please sign in to comment.