<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Just to clarify, carriage-return is the old (Pre-OS X) line ending character.  Many apps including TextEdit recognize both transparently, but all the UNIX command line tools will only recognize the linefeed.  Generally, linefeed is the way to go as I suspect any apps that use Carbon or Cocoa Text facilities inherit this functionality.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>-atticus</DIV><DIV><BR><DIV><DIV>On Oct 26, 2005, at 2:25 PM, Albert Willis wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV><DIV>On Oct 26, 2005, at 11:50 AM, David M Rosenberg wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Is there a clear direction in which Apple is heading with respect to</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">line endings in text files?</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I know that some programs can deal with either Mac OS 9 line endings</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(a single Carriage-Return character), Unix line endings (a single</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Line-Feed character), or DOS line endings (a Carriage-Return +</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Line-Feed pair). I also know that other programs give you the option</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">of generating files with the user's choice of line endings.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">My question is: What does Apple consider to the "standard" line</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">endings to be used in a text file written by a Mac OS X program in a</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">circumstance where you can't ask the user to choose?</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I would be especially appreciative to have a pointer to an official</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Apple statement to the effect that: "In Mac OS X the 'standard line</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">ending' is ...."</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">--<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">/David M Rosenberg <SPAN class="Apple-converted-space">        </SPAN>&lt;<A href="mailto:rosenberg@mit.edu">rosenberg@mit.edu</A>&gt; <SPAN class="Apple-converted-space">        </SPAN>1-617-253-8054</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">MIT / IS&amp;T / Admin Computing / Technical Services</DIV></BLOCKQUOTE><BR></DIV><DIV>To my knowledge, Apple has not declared a standard line ending for Mac OS X.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I suspect the unofficial standard is the single line feed (LF) character; since Mac OS X is a Unix-based operating system, that shouldn't be a surprise. The text editors that ship with Mac OS X (emacs, pico, vi, TextEdit) all use the single LF character for line endings in text files.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Any text files that are generated by the operating system have LF as the line ending, so that appears to be the answer.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>  -- Al</DIV><BR><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT face="Lucida Grande" size="3" style="font: 11.0px Lucida Grande">______________________________</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT face="Lucida Grande" size="3" style="font: 11.0px Lucida Grande">Albert Willis</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT face="Lucida Grande" size="3" style="font: 11.0px Lucida Grande">Macintosh Platform Coordinator - Software Release Team</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT face="Lucida Grande" size="3" style="font: 11.0px Lucida Grande">Information Services and Technology</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT face="Lucida Grande" size="3" style="font: 11.0px Lucida Grande">Massachusetts Institute of Technology</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT face="Lucida Grande" size="3" style="font: 11.0px Lucida Grande"><A href="mailto:awillis@mit.edu">awillis@mit.edu</A></FONT></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN> </DIV><BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Macpartners mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Macpartners@mit.edu">Macpartners@mit.edu</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://mailman.mit.edu/mailman/listinfo/macpartners">http://mailman.mit.edu/mailman/listinfo/macpartners</A></DIV> <BR class="Apple-interchange-newline"></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>