http://bugzilla.novell.com/show_bug.cgi?id=546608


           Summary: xbuild is far too aggressive in converting '\'
                    characters to '/' in all expressions and attribute
                    values
    Classification: Mono
           Product: Mono: Tools
           Version: 2.4.x
          Platform: All
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: xbuild
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.3)
Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)

xbuild is far too aggressive in converting '\' characters to '/' in all
expressions and attribute values. For instance, if I wanted to use the
WriteLinesToFile task and needed to include the '\' character in the Lines
attribute value to escape some regular expressions or if I needed to use the
Exec task to execute a perl -e command, it will currently fail miserably due to
blindly converting all '\' characers to '/'. Even '\\' sequences are converted
to '//' sequences. Not all '\' characters are "Windows" path separators.

Reproducible: Always

Steps to Reproduce:
1. Write an MSBuild script to process a text file using the exec task and call
"perl -e 's/\t/    /g' @(FileItem)"
2. The "\t" will convert to "/t" which will clearly not work.
3.
Actual Results:  
One-line perl program simply doesn't work as intended due to '\' conversions.

Expected Results:  
Expected the one-line perl program to properly convert tabs to the specified
number of spaces in the specified file.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to