Article View: comp.sys.mac.programmer.codewarrior
Article #1056Re: CW "Map newlines to CR" chaos
From: MW Ron
Date: Fri, 08 Mar 2002 00:33
Date: Fri, 08 Mar 2002 00:33
30 lines
2110 bytes
2110 bytes
In article <3C87D3BD.8F0436CD@vernier.com>,
Christopher Corbell <ccorbell@vernier.com> wrote:
>MW Ron wrote:
>[....]
>> (Apple uses one char to signify and end of the
>> line, while UNIX uses another, and Widnows yet another).
>[....]
>
>This is true, and that's why I need literal
>CR's and LF's to remain what-they-are - that file
>I'm opening could have come from my program running
>under Windows or Linux.
Well then you need to open a file in Binary mode so there is no text
translation. That is what it is for.
I don't understand why you think this has anything to do with Map
Newlines. That setting is only there for usinglibraries compatible with
MPW. If you are using this now for anything other than this you are
misusing it and are sure to have problems.
Ron
--
TOP PICK HandHeld Computing - issue 4.5
"The best overall development tool for the Palm OS"
Metrowerks, maker of CodeWarrior - "Software Starts Here"
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com
Technical Details
Message-ID:
<mwron-6D9092.19335607032002@enews.newsguy.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!mwronReferences:
<3C86BC4F.9930D425@vernier.com> <mwron-452B80.14140007032002@enews.newsguy.com> <3C87D3BD.8F0436CD@vernier.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,1e3721ce480a395b
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,1e3721ce480a395b
X-Google-Attributes: gidf635e,public
X-Google-ArrivalTime: 2002-03-07 17:05:23 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!mwron
From: MW Ron <mwron@metrowerks.com>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac
Subject: Re: CW "Map newlines to CR" chaos
Date: Thu, 07 Mar 2002 19:33:56 -0500
Organization: Metrowerks
Lines: 30
Message-ID: <mwron-6D9092.19335607032002@enews.newsguy.com>
References: <3C86BC4F.9930D425@vernier.com> <mwron-452B80.14140007032002@enews.newsguy.com> <3C87D3BD.8F0436CD@vernier.com>
NNTP-Posting-Host: p-848.newsdawg.com
User-Agent: MT-NewsWatcher/3.1 (PPC)
X-Face: )mY~XFHLw)UOW!W#[Ljvxq6Ja7(g'#F0-g*&puNxR8hEJkd@Oue/70^.)I78\
(%a%&Id211u"l/t.llWo/M|?15XUlx9!IGkdWiEmcasiyg"k;Q9[~XuE+`t2"*n(>nmm
@L/q,TjMd5+H{gASEPDR^$