CR LF pair in tar.gz package problem

The place to discuss creating, porting and modifying Celestia's source code.
Guest

CR LF pair in tar.gz package problem

Post #1by Guest » 07.11.2002, 12:14

I downloaded celestia-1.2.4.tar.gz from Source Forge and tried to buld with
msvc 6.0 SP5, but it did not parse *.dsw and *.dsp files.

I found out that the problem was that end of line was ASCII 0x0a char
and that MSVC expects 0x0d 0x0a pair.

I fixed *.dsw and *.dsp files with hex editor.

Is there more elegant way to fix this problem?

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 5 months
Location: NY, USA

Post #2by selden » 07.11.2002, 12:42

There are utilities available to do that conversion for you, but I'm afraid I can't list them. I usually work in an environment where the actual line terminator characters are changed automatically as necessary (Emacs on VMS).

A bare <lf> is the standard Unix line termination (which is what you encountered.)
A bare <cr> is the standard Mac line termination.
<cr> <lf> is the standard Windows line termination (which is what you need.)

Actually, I'm surprised you didn't have encounter the problem with many other files, since tar.gz archives are primarily intended for Unix, not Windows.

I hope that this at least clarifies the problem you're having.
Selden

Guest

Post #3by Guest » 07.11.2002, 23:19

I was able to compile it with libpng zlib and jpeglib which are not included in the package.
Besides this CR/LF thing, there were many "truncated too long identifier" warnings regarding templates, but only in debug version.
Release version works with no problems.


Return to “Development”