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

Re: [MiNT] stdio write problem in mintlib



Andreas Schwab píše v Ne 30. 12. 2007 v 10:30 +0100:

main = putchar('a'); putchar('\n');

> > export TEST=`./main`
> >
> > You get 
> >
> > "EST="a
> >
> > Notice that the linefeed has continued on and inserted into the
> > environment variable which is incorrect.
> 
> Not the LF '\n', but the CR '\r'.  This is the correct operation.

the question is whether it is correct to convert LF to CRLF in such
case.

Petr