On 1/9/02 8:18 AM, "Gabriel Sidler" <[EMAIL PROTECTED]> wrote:
> I fixed this morning all those line termination problems in > the new cvs module jakarta-velocity-tools. > > I did a few tests to find out why these wrongly terminated files > ended up in the repository. My best understanding is this: > > - CVS clients do tweak line terminator of text files in the same > way the ftp protocol tweaks line terminators. So that's a feature not > a problem. CVS clients make sure that you always have correctly > terminated text files for your plattform. Since the tweaking is done > in both directory (checkout and commit) everything is fine. > > - In the repository (cvs server) text files (should!) have UNIX-style line > terminators (\x0A) > > - In our specific case, the problem was, that the repository contained > some files with Windows-style line terminators (\x0D\x0A). When a Windows > client checks out such a file, it unix2dos converts it, which makes > out of \x0D\x0A the terminator \x0D\x0D\x0A. That is what Donnie Hall > reported. > > The Windows files ended up in the repository because before the initial > cvs import we intensively exchanged prototypes. That's probably when Windows > and > UNIX style files got mixed. Then, the initial import was done on a Unix-like > plattform, which obviously does't take care of the necessary conversion of > the Windows line terminator. > > In short: As long as you work on your plattform (be it Windows, Unix, Mac) > with properperly terminated files for your plattform, all should be fine. > CVS clients take care of the necessary line terminator conversions. Problems > start when you exchange files outside cvs and then bring such these files > into CVS on plattform other than the native plattform for these files. > > I hope we've beaten this horse to dead now. :-) Finis! Thanks for tracking that down. -- Geir Magnusson Jr. [EMAIL PROTECTED] System and Software Consulting Be a giant. Take giant steps. Do giant things... -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
