ReunionTalk  

Go Back   ReunionTalk > Using Reunion 9

Reply
 
  #1  
Old 11 September 2012, 06:00 PM
G Petley's Avatar
Member
 
Join Date: Dec 2008
Location: Hawkshead
Posts: 7
Arrow Newline character in GEDCOM files

I seem to see ascii code 11 (hex 0B, aka ctrl-M) as the newline character in GEDCOM files written from Reunion 9. Checking on the web, Apple stopped using this newline character with OS 9, and starting with OS X they use (I think anyway) ascii code 10 (hex 0A, aka ctrl-J).

Can anyone confirm that Reunion 9 is still using the old Apple standard, or if there is an option to set the newline character to the standard one used by OS X. Or have I misunderstood my GEDCOM file contents?

-Graham
Reply With Quote
  #2  
Old 11 September 2012, 07:49 PM
donworth's Avatar
Member
 
Join Date: Jul 2008
Location: Valencia, California
Posts: 108
Default Re: Newline character in GEDCOM files

That's odd. Windows used to use CR + LF for end of lines and Mac used CR. I don't remember either using NL.
Reply With Quote
  #3  
Old 11 September 2012, 09:27 PM
bmohr's Avatar
Member
 
Join Date: Mar 2005
Location: Seattle, WA
Posts: 70
Default Re: Newline character in GEDCOM files

Quote:
Originally Posted by donworth View Post
That's odd. Windows used to use CR + LF for end of lines and Mac used CR. I don't remember either using NL.
Traditionally, Windows (and DOS, CP/M, OS/2, etc.) used CR-LF, Unix-like systems used LF, and the classic Mac OS used CR (as did lots of pre-IBM PC personal computers, such as the Apple II, TRS-80, Commodore PET, etc.). As a UNIXy OS at its core, OS X has always used LF as its "native" line ending.

Graham is correct that Reunion 9 still uses the "classic Mac OS" line ending (CR) in exported GEDCOM files (as does Reunion 10). The GEDCOM standard says all combinations of CR and LF are acceptable (CR, LF, CR-LF, LF-CR), though I've encountered many genealogy applications that aren't so lenient. Personally, I would prefer to see Reunion export with LF rather than CR, but it's not a big deal. Reunion is not the only holdout in this regard. Text files exported from FileMaker Pro still use CR, too, and it's the default for text files exported from Word.
__________________
Brad Mohr
http://bradandkathy.com/
Reply With Quote
  #4  
Old 12 September 2012, 08:17 AM
Gregg's Avatar
Technical Support
 
Join Date: Feb 2005
Location: Mechanicsburg, PA
Posts: 658
Default Re: Newline character in GEDCOM files

Quote:
Originally Posted by G Petley View Post
I seem to see ascii code 11 (hex 0B, aka ctrl-M) as the newline character in GEDCOM files written from Reunion 9...
I'm not sure what you're using to see this; however, no version of Reunion ever used ASCII 11 for a new line.
__________________
Gregg Witmer
Leister Productions, Inc.
Reply With Quote
  #5  
Old 12 September 2012, 01:27 PM
G Petley's Avatar
Member
 
Join Date: Dec 2008
Location: Hawkshead
Posts: 7
Default Re: Newline character in GEDCOM files

Yes, I meant decimal 11. Brad gave the clear answer I was looking for. The line feed has to be changed to hex 0A before editing a GEDCOM file with Unix utilities like grep.

-Graham
Reply With Quote
Reply

ReunionTalk > Using Reunion 9 > Newline character in GEDCOM files



All times are GMT -4. The time now is 12:20 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
© Copyright 1995-2012 Leister Productions, Inc. All rights reserved. Reunion is a registered trademark of Leister Productions, Inc.