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

Re: \n or \r\n?



> > output of simple printf("First line\nSecond line"); looks differently
> > under MiNT and TOS. Under TOS it does not return the carriage :-)
> > However the same program compiled under PureC works fine under TOS.
> > 
> > Shouldn't the MiNTlibs do automatic CR->CRLF translation on output
> > (under TOS at least)?

CR is Mac newline, LF unix one... :-)

> I would support a new library function for EOLN translation.  I
> still don't think it belongs in fputc().
> 
> Is there a reasonable way EOLN translation could be turned on or
> off depending on whether or not we run under MiNT?

Why not just use \r\n on programs which are supposed to (= can) run
under both plain TOS and MiNT?


	- Eero