[p4] Removing end of line character from files in entire source tree
Ivey, William
william_ivey at bmc.com
Wed Jan 9 09:21:40 PST 2008
The first thing you want to ask is, "is this a good idea?"
Some tools, especially Unix tools but also on Windows, will
not handle files correctly unless the last character is an
EOL character. (The last line will "disappear".) It is hard
to predict when this will become a problem - you could go
months before a mystery failure occurs when a new tool is
introduced.
Some tools will handle it, but issue a warning. They never
saw the last line, but they can make a reasonable assumption
about what it was - a closing brace, for example. You hope
they were right.
We've had builds break because a developer chopped off the
last EOL character in a file that had to pass through, for
example, sed, and the last line was important.
Is there a reason to remove that last character(s) from the
file other than aesthetics? Is it causing a real problem?
-Wm
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Thierry Lam
Sent: Wednesday, January 09, 2008 10:14 AM
To: perforce-user at perforce.com
Subject: [p4] Removing end of line character from files in entire source
tree
I current have a depot with all source files ending with the end of line
character, is there an easy way to remove them?
Thierry
_______________________________________________
perforce-user mailing list - perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
More information about the perforce-user
mailing list