Issue #16119 has been reported by Nick Fagerlund.
----------------------------------------
Bug #16119: We reject the \r escape sequence as invalid, which makes it hard to
write Windows strings in a Unix editor
https://projects.puppetlabs.com/issues/16119
Author: Nick Fagerlund
Status: Unreviewed
Priority: Normal
Assignee: Josh Cooper
Category: parser
Target version: 2.7.20
Affected Puppet version:
Keywords:
Branch:
$mystring = "first line\r\nsecondline"
This blows up, with an "Unrecognised escape sequence" error. Looking at
puppet/parser/lexer.rb somewhere in the neighborhood of line 500:
def slurpstring(terminators,escapes=%w{ \\ $ ' " n t s
}+["\n"],ignore_invalid_escapes=false)
It'd be cool to be able to insert a literal CR into a string, since we write
strings in binary mode on Windows and it's really really hard to make text
editors intermix LF and CRLF linebreaks in the same file.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.