Path: csiph.com!aioe.org!.POSTED!not-for-mail From: Rod Pemberton Newsgroups: comp.lang.forth Subject: Re: Ann: A new version of Win32Forth has been released. Date: Tue, 2 Feb 2016 02:09:32 -0500 Organization: Aioe.org NNTP Server Lines: 39 Message-ID: <20160202020932.2cfb9d9d@_> References: <2d006cc9-c256-4072-bdb2-372ed88d4b4d@googlegroups.com> <22414f72-b069-4dc9-90be-fb0005ccd2be@googlegroups.com> <56af7352$0$23733$e4fe514c@news.xs4all.nl> <1rbfecasobt5l.zpwf21w4571d$.dlg@40tude.net> NNTP-Posting-Host: n4wpt9zq8xR26Ttf9mo2BA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Newsreader: Claws Mail 3.13.1 (GTK+ 2.24.10; x86_64-unknown-linux-gnu) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.forth:45241 On Mon, 1 Feb 2016 23:13:49 +0100 Coos Haak wrote: > Op Mon, 1 Feb 2016 19:59:16 +0000 schreef Gerry Jackson: > > On 01/02/2016 15:18, josv@planet.nl wrote: > >> Indeed, When i loaded core.fr into the IDE and saved it, it ran > >> without problems. > > > >>> Input source handling can be tricky. If you copied the test from a > >>> unix system without converting it to a MS-DOS text file, tests > >>> may fail. > >> > > > > Yes ensuring end of line is CRLF makes it run OK. Sorry I didn't > > spot that. I use Windows line endings and don't know how just LF's > > crept in. Still other systems don't seem to worry about it. > > > > Thanks Albert for pointing that out. > > Scan each character in the buffer > No more characters -> done. > If LF -> Unix > If CR > Followed by LF -> DOS > Else -> old Mac > Repeat. > > This way I read all three sorts of files for a lot of years now. > Do you guys really need to handle source code from the old Mac's? If not, discard any CR's and only watch for LF's. That will handle any Linux and Windows text or Forth code. Rod Pemberton