X-Spam-Check-By: sourceware.org
Message-ID: <4656D65B.3020203@byu.net>
Date: Fri, 25 May 2007 06:28:11 -0600
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: problem concating (>>) to a large file
References: <001201c79ea3$4d82bce0$8500a8c0@RUSNAK> <46569B8B.1C15A76E@dessent.net>
In-Reply-To: <46569B8B.1C15A76E@dessent.net>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Brian Dessent on 5/25/2007 2:17 AM:
>> Until recently in cygwin I could just type:
>>
>>             cat B >> A
>>
> I think there is a newlib bug (or maybe it's a Cygwin bug) where
> stdin/stdout start off opened in 32 bit mode.  I'm not sure of the
> details, and all I know about it is from observing that Eric Blake has
> been working on compensating for this dilemma in gnulib as it seems to
> cause problems seeking in some circumstances.

Now that you mention it, I guess I could release an updated version of
coreutils where cat uses this gnulib fix to work around the issue in
1.5.24, rather than requiring uses to upgrade to snapshots.  But that only
fixes cat.  The problem is that since the bug is in newlib, the choice is
either hacking every app that deals with stdin, or just updating cygwin.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGVtZb84KuGfSFAYARAmfrAJ9/ShI0kltP1So4I/pri8/diNG8TACeI0o/
+R1ZSw7x6lYzZvFVXIJEFsA=
=72Yh
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

