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

"Warning: Unrecognized escape sequence" with windows file paths

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: PUP 5.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      On puppet/master

      I have the following manifest:

      file { "C:\Users\moses\Desktop\file_utf8_title_€" :
        ensure => file,
        mode => "0644",
        content => "This is the file content.
      ",
      }
      
      

      when I apply this on windows (as this is a windows path), I get the following:

      C:\Users\moses\development\puppet(master)> be puppet apply C:\Users\moses\Desktop\foo_win.pp
      Warning: Unrecognized escape sequence '\U' at C:/Users/moses/Desktop/foo_win.pp:1:50
      Warning: Unrecognized escape sequence '\m' at C:/Users/moses/Desktop/foo_win.pp:1:50
      Warning: Unrecognized escape sequence '\D' at C:/Users/moses/Desktop/foo_win.pp:1:50
      Warning: Unrecognized escape sequence '\f' at C:/Users/moses/Desktop/foo_win.pp:1:50
      Notice: Compiled catalog for win-ghb4gdkiluo.localdomain in environment production in 0.04 seconds
      Notice: Applied catalog in 0.03 seconds
      

      These warnings are invalid since its just a file path, not escape sequences..

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            moses Moses Mendoza
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support