• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OS X lineendig - \n or \r
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OS X lineendig - \n or \r


  • Subject: Re: OS X lineendig - \n or \r
  • From: The Amazing Llama <email@hidden>
  • Date: Thu, 7 Aug 2003 16:11:18 -0700

On Thursday, August 7, 2003, at 04:01 PM, seaside.ki wrote:
Silly question, but which characters do I have to write to a file to generate correct
line endings?

\n is not OK.

It's not?

'\n' is the UNIX line ending. That's becoming the standard on OS X, too, AFAIKT.
'\r' is the Classic Mac ending. Most editors will still read these.
'\r\n' is the Windows ending. That's just silly.

When is \n not OK?

Seth A. Roby The Amazing Llama < mail or AIM me at tallama at mac dot com>
"Life is like an exploded clown. It's really funny until you figure out what just happened."
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: OS X lineending - \n or \r
      • From: "seaside.ki" <email@hidden>
References: 
 >OS X lineendig - \n or \r (From: "seaside.ki" <email@hidden>)

  • Prev by Date: Re: Can System Preferences.app unload my Pane on request?
  • Next by Date: Re: Anything bad about allocWithZone: [self zone]?
  • Previous by thread: OS X lineendig - \n or \r
  • Next by thread: Re: OS X lineending - \n or \r
  • Index(es):
    • Date
    • Thread