Jira (PUP-8243) Allow ERB templates to be tolerant of a leading BOM

16 views
Skip to first unread message

Ethan Brown (JIRA)

unread,
Dec 12, 2017, 10:40:04 AM12/12/17
to puppe...@googlegroups.com
Ethan Brown created an issue
 
Puppet / Improvement PUP-8243
Allow ERB templates to be tolerant of a leading BOM
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2017/12/12 7:39 AM
Labels: windows utf-8
Priority: Normal Normal
Reporter: Ethan Brown

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.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db)
Atlassian logo

Ethan Brown (JIRA)

unread,
Dec 12, 2017, 11:20:03 AM12/12/17
to puppe...@googlegroups.com
Ethan Brown updated an issue
Change By: Ethan Brown
Priority: Normal Major

Craig Gomes (JIRA)

unread,
Jan 30, 2018, 1:13:03 PM1/30/18
to puppe...@googlegroups.com
Craig Gomes updated an issue
Change By: Craig Gomes
Sprint: Windows  Hopper  Grooming

Erick Banks (JIRA)

unread,
Feb 7, 2019, 8:24:10 PM2/7/19
to puppe...@googlegroups.com
Erick Banks updated an issue
Change By: Erick Banks
Sprint: Windows Grooming
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (Jira)

unread,
Jun 6, 2020, 7:59:05 PM6/6/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Windows Night's Watch
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Jun 15, 2021, 1:10:02 PM6/15/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Night's Watch Coremunity
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Josh Cooper (Jira)

unread,
Jun 15, 2021, 1:10:02 PM6/15/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jun 15, 2021, 1:11:03 PM6/15/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Platform Core KANBAN

Josh Cooper (Jira)

unread,
Jun 17, 2021, 11:51:01 AM6/17/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jun 22, 2021, 12:30:02 PM6/22/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jun 22, 2021, 12:30:02 PM6/22/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 7.9.0
Fix Version/s: PUP 6.24.0

Gabriel Nagy (Jira)

unread,
Jul 8, 2021, 9:37:02 AM7/8/21
to puppe...@googlegroups.com
Gabriel Nagy updated an issue
Change By: Gabriel Nagy
Release Notes: Enhancement
Release Notes Summary: 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.

Claire Cadman (Jira)

unread,
Jul 13, 2021, 6:34:02 AM7/13/21
to puppe...@googlegroups.com
Claire Cadman updated an issue
Change By: Claire Cadman
Labels: doc-reviewed utf-8 windows
Reply all
Reply to author
Forward
0 new messages