[Mono-list] DOS/UNIX line endings

Dan Lewis dihlewis@yahoo.co.uk
Sat, 4 May 2002 14:48:20 +0100 (BST)


While messing around with some regular expressions I thought I'd see how many
files in the class library were written in DOS and UNIX style. It turns out
there are 1240 unix-style (NL) C# files, and 558 dos-style (CR-NL) files.

There are also 47 files that favour a more cosmopolitan outlook, incorporating
a creative mixture of both line styles. This can make them a bit of a pain to
edit, but I don't know whether it is worth fixing them now or just trying to
avoid this in future. Anyone got any ideas?

Dan.



unix: 1240
dos:  558
both: 47
    class/System/System.ComponentModel/Component.cs (1 dos)
    class/System/System.Configuration/ConfigurationSettings.cs (15 dos)
    class/System.Data/System.Data/DataRowCollection.cs (23 dos)
    class/System.Data/System.Data/DataView.cs (3 dos)
    class/System.Data/System.Data/DataSet.cs (90 dos)
    class/System.Data/System.Data/DataRowChangeEventArgs.cs (4 dos)
    class/System.Data/System.Data/ForeignKeyConstraint.cs (25 dos)
    class/System.Data/System.Data/PropertyCollection.cs (6 dos)
    class/System.Data/System.Data/UniqueConstraint.cs (5 dos)
    class/System.Drawing/System.Drawing.Imaging/PixelFormat.cs (1 dos)
    class/System.Web/System.Web/HttpRequest.cs (1 unix)
    class/System.XML/System.Xml/WriteState.cs (44 unix)
    class/corlib/System/Array.cs (3 dos)
    class/corlib/System/Console.cs (3 dos)
    class/corlib/System/Environment.cs (2 unix)
    class/corlib/System/DecimalFormatter.cs (100 dos)
    class/corlib/System.Collections/Comparer.cs (12 unix)
    class/corlib/System.Collections/Queue.cs (4 unix)
    class/corlib/System.Collections/Stack.cs (4 unix)
    class/corlib/System.Collections/Hashtable.cs (4 unix)
    class/corlib/System.Globalization/DateTimeFormatInfo.cs (414 dos)
    class/corlib/System.IO/DirectoryInfo.cs (1 unix)
    class/corlib/System.IO/File.cs (2 unix)
    class/corlib/System.IO/FileInfo.cs (1 unix)
    class/corlib/System.Resources/ResourceReader.cs (1 dos)
    class/corlib/System.Runtime.Remoting.Messaging/LogicalCallContext.cs (4
unix)
    class/corlib/System.Security/SecurityManager.cs (2 unix)
    class/corlib/System.Security.Cryptography/CspProviderFlags.cs (1 unix)
    class/corlib/System.Security.Cryptography/DSA.cs (1 unix)
    class/corlib/System.Security.Permissions/CodeAccessSecurityAttribute.cs (2
unix)
    class/corlib/System.Security.Policy/CodeGroup.cs (2 dos)
    class/corlib/System.Security.Policy/FileCodeGroup.cs (1 dos)
    class/corlib/Test/System/ByteTest.cs (1 dos)
    class/corlib/Test/System/StringTest.cs (64 dos)
    class/corlib/Test/System/UInt32Test.cs (1 dos)
    class/corlib/Test/System/RandomTest.cs (1 dos)
    class/corlib/Test/System/ResolveEventArgsTest.cs (1 dos)
    class/corlib/Test/System/UInt64Test.cs (1 dos)
    class/corlib/Test/System/Int16Test.cs (1 dos)
    class/corlib/Test/System/UInt16Test.cs (1 dos)
    class/corlib/Test/System/Int32Test.cs (1 dos)
    class/corlib/Test/System/SByteTest.cs (1 dos)
    class/corlib/Test/System.Collections/StackTest.cs (1 dos)
    class/corlib/Test/System.Resources/ResourceReaderTest.cs (1 unix)
    class/corlib/Test/System.Security.Policy/CodeGroupTest.cs (6 unix)
    mcs/statement.cs (1 dos)
    tests/casts.cs (103 dos)


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com