Page 1 of 1

Old Mac text format

Posted: Wed 12. Jul 2017, 00:03
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

Re: Old Mac text format

Posted: Wed 12. Jul 2017, 07:47
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.

Re: Old Mac text format

Posted: Wed 12. Jul 2017, 18:52
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

Re: Old Mac text format

Posted: Wed 12. Jul 2017, 19:10
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.