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

Re: \n or \r\n?



On Tue, 19 May 1998 01:21:25 +0200 (EET DST), Tamminen Eero wrote:

TE>> > under MiNT and TOS. Under TOS it does not return the carriage :-)
TE>> > However the same program compiled under PureC works fine under TOS.
TE>> >
TE>> > Shouldn't the MiNTlibs do automatic CR->CRLF translation on output
TE>> > (under TOS at least)?
TE>
TE>CR is Mac newline, LF unix one... :-)

Sure I meant LF->CRLF

TE>> I would support a new library function for EOLN translation.  I
TE>> still don't think it belongs in fputc().

I didn't say it belongs to fputc(), I just think it would be OK if
simple printf("1\n2") would do the expected thing under TOS.

TE>> Is there a reasonable way EOLN translation could be turned on or
TE>> off depending on whether or not we run under MiNT?
TE>
TE>Why not just use \r\n on programs which are supposed to (= can) run
TE>under both plain TOS and MiNT?

As I pointed out: the same object code linked with PureC libs does
different thing than when linked with MiNTlibs. That should be fixed in
MiNTlibs, not by rewritting every possible source code.

Petr
--
E-mail: stehlik@cas3.zlin.vutbr.cz                        PARCP developer
   WWW: http://cas3.zlin.vutbr.cz/~stehlik/              MiNTOS/Linux user
mirror: http://users.zln.cz/~pstehlik/                 Atari 800XL emulation
mirror: http://www.stehlik.cyberstrider.org/              Atari Falcon040