Re: [fpc-pascal]CR / CRLF problem when redirecting to file

2003-09-14 Thread John Coppens
On Mon, 15 Sep 2003 11:26:40 +1000 James Mills <[EMAIL PROTECTED]> wrote: > > In some of my programs I do NOT use the CRT unit but a similar thing > happens. Go figure :) Hi James... I didn't have crt in my program, but called another unit that did have it. So the danger is always present ;-) R

Re: [fpc-pascal]CR / CRLF problem when redirecting to file

2003-09-14 Thread James Mills
On Sun, Sep 14, 2003 at 05:57:57PM +0200, Jonas Maebe wrote: > > On zondag, sep 14, 2003, at 17:48 Europe/Brussels, John Coppens wrote: > > >In Linux, when redirecting FPC output to a file, I found that after 25 > >lines, CR characters are being added, as if in DOS: > > > >program TestCR; > >uses

[fpc-pascal]CardinalToStr

2003-09-14 Thread Vincent Snijders
Hi, Has FPC functions for the cardinal type like IntToStr? The snippet below produces quiet understandably -2147483647 instead of 2147483649. program hasCardinalToStr; const c2 = Cardinal($8001); begin writeln(IntToStr(c2)); end. Regards, Vincent. __

Re: [fpc-pascal]CR / CRLF problem when redirecting to file

2003-09-14 Thread Jonas Maebe
On zondag, sep 14, 2003, at 19:42 Europe/Brussels, John Coppens wrote: Is there no elegant solution to this? I use a library of mine that does some screen operations, like gotoxy, and includes the CRT library. So, even if I only use hex output from that library, I still get CRT for free. I could

Re: [fpc-pascal]CR / CRLF problem when redirecting to file

2003-09-14 Thread John Coppens
On Sun, 14 Sep 2003 17:57:57 +0200 Jonas Maebe <[EMAIL PROTECTED]> wrote: > That's because you are using the crt unit. The crt unit is only meant > for screen display, it has to use all sorts of tricks on a *nix console > (setting it to raw mode, for instance). That's why you get garbage if > y

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-14 Thread Michael . VanCanneyt
On Mon, 15 Sep 2003, James Mills wrote: > On Sun, Sep 14, 2003 at 05:36:25PM +0200, [EMAIL PROTECTED] wrote: > > > > > > On Mon, 15 Sep 2003, James Mills wrote: > > > > > On Sun, Sep 14, 2003 at 06:48:36AM -0700, Alan Mead wrote: > > > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > > > > >

Re: [fpc-pascal]CR / CRLF problem when redirecting to file

2003-09-14 Thread Jonas Maebe
On zondag, sep 14, 2003, at 17:48 Europe/Brussels, John Coppens wrote: In Linux, when redirecting FPC output to a file, I found that after 25 lines, CR characters are being added, as if in DOS: program TestCR; uses CRT; That's because you are using the crt unit. The crt unit is only meant for s

Re: [fpc-pascal]CR / CRLF problem when redirecting to file

2003-09-14 Thread James Mills
On Sun, Sep 14, 2003 at 12:48:28PM -0300, John Coppens wrote: > Hello all, > > In Linux, when redirecting FPC output to a file, I found that after 25 > lines, CR characters are being added, as if in DOS: > > program TestCR; > uses > CRT; > var > i: integer; > begin > for i := 1 to 50 do >

[fpc-pascal]CR / CRLF problem when redirecting to file

2003-09-14 Thread John Coppens
Hello all, In Linux, when redirecting FPC output to a file, I found that after 25 lines, CR characters are being added, as if in DOS: program TestCR; uses CRT; var i: integer; begin for i := 1 to 50 do writeln('The quick brown fox jumps over the lazy dog''s back ', i); end. when doing

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-14 Thread James Mills
On Sun, Sep 14, 2003 at 05:36:25PM +0200, [EMAIL PROTECTED] wrote: > > > On Mon, 15 Sep 2003, James Mills wrote: > > > On Sun, Sep 14, 2003 at 06:48:36AM -0700, Alan Mead wrote: > > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > > > > > It hands when you POST data with two angled bracked,

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-14 Thread Michael . VanCanneyt
On Mon, 15 Sep 2003, James Mills wrote: > On Sun, Sep 14, 2003 at 06:48:36AM -0700, Alan Mead wrote: > > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > > > It hands when you POST data with two angled bracked, eg: "> >" > > > I have not tried using GET, I don't think it would be appropiate >

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-14 Thread James Mills
On Sun, Sep 14, 2003 at 06:48:36AM -0700, Alan Mead wrote: > --- James Mills <[EMAIL PROTECTED]> wrote: > > > > It hands when you POST data with two angled bracked, eg: "> >" > > I have not tried using GET, I don't think it would be appropiate > > for a > > form based page :) > > Form data can be

Re: [fpc-pascal]CGI: cgiapp.pp and ezcgi.pp possible bug

2003-09-14 Thread Alan Mead
--- James Mills <[EMAIL PROTECTED]> wrote: > > It hands when you POST data with two angled bracked, eg: "> >" > I have not tried using GET, I don't think it would be appropiate > for a > form based page :) Form data can be POST'd or GET'd depending on the way you form the 'form' tag. You're righ