[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Poll: do we really need newline conversion?

From: Charles Wilson <pathfinder_at_acm.org>
Date: 2001-12-11 19:27:11 CET

>Frankly, I'm thinking we shouldn't bother. Why spend time on a
>feature that a) people rarely need these days and b) has the potential
>to do unexpected things to people's data?

As the Macintosh SourceSafe developer, I spent a good deal of time in
the EOL normalization code during the three years I worked on it.
Here are some observations:

- Visual Studio didn't handle Macintosh EOLs worth a damn. (I haven't
checked it lately.)

- People will edit a file that has been copied from one OS to another
without the benefit of EOL renormalization, move it back and put it
back into the source control database.

- People will use stupid text editors that don't bother to check what
the line endings are. They may even be able to read the file and
display it correctly, but only add new material using their native
EOL sequences.

- God awful things can happen to C preprocessors when they hit
non-native EOL sequences.

- You can't accurately diff text files on all platforms if they
aren't EOL normalized.

- You can't use files sizes to compare files if they aren't EOL normalized.

- EOL normalization makes the files in the database smaller. (Not a
big deal until you've got 300,000 files that average 5,000 lines
each).

-- 
- charles
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:52 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.