-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fix New-ModuleManifest encoding in What's New 6.0 #2048
Fix New-ModuleManifest encoding in What's New 6.0 #2048
Conversation
✅ Validation status: passed
For more details, please refer to the build report. Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report. |
@joeyaiello Can you review Matt's comments here. Is this a bug in New-ModuleManifest? |
The content is correct. Unfortunately I didn't notice with the encoding changes that |
* Fix New-ModuleManifest encoding in What's New 6.0 (#2048) * Date and spaces updates [M1] (#2215) * Date and spaces updates [M0] (#2214) * Date and spaces updates [M0] * Fixed for PlatyPS * Date and spaces updates [M2] (#2216) * Date and spaces updates [M3] (#2217) * Date and spaces updates [M4] (#2218) * Add newlines (#2219) * Date and spaces updates [Tu0] (#2221) * Date and spaces updates [Tu2] (#2223) * Date and spaces updates [Tu1] (#2222) * Date and spaces updates [Tu3] (#2224) * Date and spaces updates [Tu4] (#2225) * Date and spaces updates [Tu4] * Fixed example and for PlatyPS
* Fix New-ModuleManifest encoding in What's New 6.0 (#2048) * Date and spaces updates [M1] (#2215) * Date and spaces updates [M0] (#2214) * Date and spaces updates [M0] * Fixed for PlatyPS * Date and spaces updates [M2] (#2216) * Date and spaces updates [M3] (#2217) * Date and spaces updates [M4] (#2218) * Add newlines (#2219) * Date and spaces updates [Tu0] (#2221) * Date and spaces updates [Tu2] (#2223) * Date and spaces updates [Tu1] (#2222) * Date and spaces updates [Tu3] (#2224) * Date and spaces updates [Tu4] (#2225) * Date and spaces updates [Tu4] * Fixed example and for PlatyPS * Importing `xVirtualMachine` (#2232) - Not: `TestCompositeResource`; which isn't mentioned anywhere in this document. * $PSVersionTable.Platform returns Unix on macOS (#2227) Fix PowerShell/PowerShell#6513 * Date and spaces updates [W0] (#2234) * Date and spaces updates [W1] (#2235) * Date and spaces updates [W2] (#2236) * Date and spaces updates [W3] (#2237) * Date and spaces updates [W4] (#2238)
* Fix New-ModuleManifest encoding in What's New 6.0 (#2048) * Date and spaces updates [M1] (#2215) * Date and spaces updates [M0] (#2214) * Date and spaces updates [M0] * Fixed for PlatyPS * Date and spaces updates [M2] (#2216) * Date and spaces updates [M3] (#2217) * Date and spaces updates [M4] (#2218) * Add newlines (#2219) * Date and spaces updates [Tu0] (#2221) * Date and spaces updates [Tu2] (#2223) * Date and spaces updates [Tu1] (#2222) * Date and spaces updates [Tu3] (#2224) * Date and spaces updates [Tu4] (#2225) * Date and spaces updates [Tu4] * Fixed example and for PlatyPS * Importing `xVirtualMachine` (#2232) - Not: `TestCompositeResource`; which isn't mentioned anywhere in this document. * $PSVersionTable.Platform returns Unix on macOS (#2227) Fix PowerShell/PowerShell#6513 * Date and spaces updates [W0] (#2234) * Date and spaces updates [W1] (#2235) * Date and spaces updates [W2] (#2236) * Date and spaces updates [W3] (#2237) * Date and spaces updates [W4] (#2238) * Date and spaces updates [W5] (#2240) * Date and spaces updates [W6] (#2241) * Date and spaces updates [W10] (#2245) * Date and spaces updates [W9] (#2244) * Date and spaces updates [W7] (#2242) * Date and spaces updates [W11] (#2246) * Date and spaces updates [W8] (#2243) * Date and spaces updates [W8] * Example and PlatyPS fixes * Date and spaces updates [W12] (#2247) * Date and spaces updates [W13] (#2248) * Date and spaces updates [W14] (#2249) * Date and spaces updates [W14] * Cleanup and PlatyPS fixes
@sdwheeler I am not sure whether it is a documentation bug or a software bug. If it is a software bug, please close this PR.
According to the New-ModuleManifest.md:
New-ModuleManifest
does not have Encoding parameterNew-ModuleManifest
cmdlet depends on environment: if it is PowerShell Core running on Linux then encoding is UTF-8 (no BOM); otherwise encoding is UTF-16 (with BOM)See NewModuleManifestCommand.cs and the following test commands:
Windows:
Linux:
FF FE
indicates BOM UTF-16 little-endian (Windows).23 0A 23 ...
indicates NoBOM (Linux).See The Unicode Consortium FAQ.
Version(s) of document impacted
Reason(s) for not updating all version of documents