Uploaded image for project: 'Puppet Agent'
  1. Puppet Agent
  2. PA-5188

Puppet should recognize BOM in a hosts file

    XMLWordPrintable

Details

    • Bug
    • Status: Accepted
    • Normal
    • Resolution: Unresolved
    • None
    • None
    • host_core
    • Needs Assessment

    Description

      Windows hosts files are encoded as ANSI, however some devices and software write entries to the hosts file in other encodings such as UTF-16. Puppet consumes the hosts file as Encoding.default_external instead of recognizing the UTF-16LE BOM and then writes the file back out as Encoding.default_external, leading to issues such as inserting whitespace between every character in the previous entries, which breaks Windows networking.

      Puppet should check for a BOM in the hosts file first, then if one is detected load the file accordingly / preserve the content of the file.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              paul.schaffer Paul Schaffer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Zendesk Support