Skip to content

Commit ec76234

Browse files
Merge pull request #135 from dgoldman-msft/Fix-encoding-output
Set-PSMDEncoding outputs blank encoding type.
2 parents 717380a + 7364884 commit ec76234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSModuleDevelopment/functions/refactor/Set-PSMDEncoding.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
Write-PSFMessage -Level Verbose -Message "Setting encoding for $resolvedPath" -Target $pathItem
6363
try
6464
{
65-
if (Test-PSFShouldProcess -PSCmdlet $PSCmdlet -Target $resolvedPath -Action "Set encoding to $($Encoding.EncodingName)")
65+
if (Test-PSFShouldProcess -PSCmdlet $PSCmdlet -Target $resolvedPath -Action "Set encoding to $($Encoding.Encoding.EncodingName)")
6666
{
6767
$text = [System.IO.File]::ReadAllText($resolvedPath)
6868
[System.IO.File]::WriteAllText($resolvedPath, $text, $Encoding)

0 commit comments

Comments
 (0)