[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] MacPerl and Alpha, "Illegal character \012" SOLVED!



In article <mac-perl.v04020a02b257ac5c1613@[192.168.0.77]>, Chris Nandor
<pudge@pobox.com> wrote:

>At 11.51 -0400 1998.10.24, Garry Paine wrote:
># (in octal)
>#                            MacPerl         Alpha's tcl
># \n      Newline              015               012
># \r      Carriage-return      012               015
>
>It is more than just Alpha.  Mac OS development environments in general
>cannot agree on this.  CodeWarrior, I believe, maps \n and \r as Alpha
>and Unix systems do.  MacPerl (and, I think, MrC and some other Mac OS C
>environments) reverse them.  Such is life.

Just a side note for any BBEdit users out there: in BBEdit's version of
grep, you need to use "\r" to match line endings, rather than "\n".
-- 
__________________________________________________________________________

Jeff Clites                Online Editor           http://www.MacTech.com/
online@MacTech.com         MacTech Magazine
__________________________________________________________________________

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch