Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
-
Coremunity
-
Platform Core KANBAN
-
Enhancement
-
Previously, if a template contained a BOM, then it was preserved by the `template` function, and would end up in the resulting file or PowerShell command. Now we pass the `bom` option when reading the file, which strips the BOM as it is read.
-
Needs Assessment
Description
See additional details in MODULES-1996 / PUP-6447.
The basic gist is that internal calls to read, like the one made by template loading with Puppet::FileSystem.read_preserve_line_endings, do not specify the "allow bom" flag when reading UTF-8 files.
This should be a straightforward addition that allows templates (for instance PowerShell templates that were once PS1 files created by PowerShell ISE that have a leading BOM) to properly remove the leading BOM.
Attachments
Issue Links
- relates to
-
PUP-6447 Allow UTF8 files to have a leading BOM to be more tolerant of files produced on Windows
-
- Accepted
-
-
MODULES-1996 PowerShell module doesn't recognize elseif
-
- Closed
-