Old Mac text format

RUMlog, the Next Generation. Completely rewritten.
User avatar
NV2K
Posts: 2
Joined: Fri 9. Sep 2016, 22:11

Old Mac text format

Unread post by NV2K »

Great programs; love them.

Unfortunately, when I try to read ADIF, Cabrillo, text summary files, usw, they appear to use the very old Macintosh pre-OSX record terminator 0x0D (carriage return), rather than the newer POSIX-type 0x0A (line feed). Doing for example,

Code: Select all

cat mylog.cbr
puts every line of text in the log file on the same line. Only the last line (and parts of longer lines) are visible.

I wanted to look at the text summary for this past weekend's contest, and all that's there is the line with the Totals, and the prompt is stuck at the end of the line, rather than on a new line as it usually is. (Of course, I logged using RUMped, but the problem is the same with both programs.)

I have created programs (one in C++ and another in Python) to change the carriage return to a line feed, and could have used the old mac2unix utility, but wonder how many other users would bother.

Might use of the standard line termination be possible right from RUMlog and RUMped?

Again, I otherwise love the programs, and thank you.

TU DX es VY 73 de Hans/NV2K
User avatar
DL2RUM
Administrator
Posts: 2931
Joined: Mon 27. Aug 2007, 13:36
Location: JO40DF

Re: Old Mac text format

Unread post by DL2RUM »

Hi Hans,

the classic RUMlog and RUMped are not any more supported for years now. Which versions do you use?
Every good text editor should be able to handle and replace alternative line endings.
73 and best dx de Tom, DL2RUM
User avatar
NV2K
Posts: 2
Joined: Fri 9. Sep 2016, 22:11

Re: Old Mac text format

Unread post by NV2K »

Dear Tom:

Thank you for your reply! I am using RUMlog 5.3.13, dated 25 February 2015, RUMped 3.2.13, and, for text, vim 7.3. I also process ADIF files with Python 2.7.

DX es VY 73 de Hans/NV2K
User avatar
DL2RUM
Administrator
Posts: 2931
Joined: Mon 27. Aug 2007, 13:36
Location: JO40DF

Re: Old Mac text format

Unread post by DL2RUM »

As far as I can see, these versions are already using 0x0A as line ending. Just checked few older files I found on my disk.
73 and best dx de Tom, DL2RUM
Post Reply