Skip to content

Build-PSBuildModule Compile UTF-8 File #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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