Skip to content

Commit 737ee37

Browse files
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 <[email protected]>
1 parent 5554b43 commit 737ee37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PowerShellBuild/Public/Build-PSBuildModule.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function Build-PSBuildModule {
104104
# Grab the contents of the copied over PSM1
105105
# This will be appended to the end of the finished PSM1
106106
$psm1Contents = Get-Content -Path $rootModule -Raw
107-
'' | Out-File -FilePath $rootModule
107+
'' | Out-File -FilePath $rootModule -Encoding utf8
108108

109109
if ($CompileHeader) {
110110
$CompileHeader | Add-Content -Path $rootModule -Encoding utf8

0 commit comments

Comments
 (0)