Details
-
Bug
-
Status: Accepted
-
Normal
-
Resolution: Unresolved
-
None
-
None
-
Windows
-
Customer Feedback
-
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
- relates to
-
PUP-6447 Allow UTF8 files to have a leading BOM to be more tolerant of files produced on Windows
-
- Accepted
-