Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <41D897B8.E802CA0B@dessent.net> Date: Sun, 02 Jan 2005 16:54:16 -0800 From: Brian Dessent Organization: My own little world... MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: "od" wrong line endings and byte count References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com "Gary R. Van Sickle" wrote: > > > I think that this is a regression of "od", though. It > > probably should > > > use binmode by default. > > > > I would tend to agree, but how would you change this default > > if desired? > > > > ? By one of the two ways God intended when he gave Moses POSIX: > > 1. O_BINARY > 2. "rb" (3. link with binmode.o) 'od' should probably be using #1 or #2 already though, if not that's easy enough to fix I'd think. The poster also had a qustion about the 'expand' utility writing NL-terminated files, when the mount was textmode. That sounded like a bug to me also, but I don't really know how the rules for text mounts are supposed to work on writes, or how 'expand' calls open(). Brian -- 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/