From mint-bounce@lists.fishpool.fi Tue Jan 22 17:31:48 2008 X-Original-To: fnaumann@mail.boerde.de Delivered-To: fnaumann@mail.boerde.de Subject: Re: [MiNT] stdio write problem in mintlib From: Petr Stehlik To: mint@lists.fishpool.fi In-Reply-To: References: <20071230010610.GA29673@fairlite.demon.co.uk> Content-Type: text/plain; charset=ISO-8859-2 Date: Sun, 30 Dec 2007 11:19:53 +0100 Message-Id: <1199009993.5377.5.camel@joy.home> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 X-MIME-Autoconverted: from 8bit to quoted-printable by ns2.avonet.cz id lBUAJqti021463 X-Approved-By: tjhukkan@fishpool.fi X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-To: mint-bounce@lists.fishpool.fi X-original-sender: pstehlik@sophics.cz Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: X-Virus-Scanned: by amavisd-new at relay.boerde.de X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de X-Spam-Status: No, hits=-1.0 tagged_above=-50.5 required=7.0 tests=BAYES_00 X-Spam-Level: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by freemint id m0MGP1cl004618 Status: X-Status: X-Keywords: 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