[Mono-bugs] [Bug 689670] New: WriteAllLines, AppendAllLines behave differently on Mono and MS .NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Apr 25 13:49:29 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=689670

https://bugzilla.novell.com/show_bug.cgi?id=689670#c0


           Summary: WriteAllLines, AppendAllLines behave differently on
                    Mono and MS .NET
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: sgsghu at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Description of Problem:
WriteAllLines and AppendAllLines methods on Mono write the items of their
string collection without line break - while on MS.NET do.

Steps to reproduce the problem:
1. Run the following line on Mono:
File.AppendAllLines("foo.txt",new string[]{"foo","bar","hun"});
-or-
File.WriteAllLines("foo.txt", new List<string>(){"foo","bar","hun"});

Actual Results:
foo.txt: 
foobarhun

Expected Results:
foo.txt:
foo
bar
hun

How often does this happen? 
Always

Additional Information:
WriteAllLines overload with string array seems to be ok.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list