Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-8243

Allow ERB templates to be tolerant of a leading BOM

    Details

    • Type: Improvement
    • Status: Accepted
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Template:
    • Acceptance Criteria:
      Hide

      An ERB template with a leading BOM should work properly in the PowerShell module

      Show
      An ERB template with a leading BOM should work properly in the PowerShell module
    • Team:
      Windows
    • QA Risk Assessment:
      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

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  ethan Ethan Brown
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated: