Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	autolearn_force=no version=3.4.1
X-AuditID: cbfec7f5-f792a6d000001302-f9-571cb96f37da
Date: Sun, 24 Apr 2016 13:17:48 +0100
From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-workers@zsh.org
Subject: Re: Possible ZSH bug with IO direction
Message-id: <20160424131748.441d605f@pwslap01u.europe.root.pri>
In-reply-to: <160423151436.ZM6912@torch.brasslantern.com>
References: <571BBF3C.50402@matrix.ai>
 <160423151436.ZM6912@torch.brasslantern.com>
Organization: Samsung Cambridge Solution Centre
X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu)
MIME-version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7bit
X-Brightmail-Tracker:
 H4sIAAAAAAAAA+NgFrrILMWRmVeSWpSXmKPExsVy+t/xq7r5O2XCDWbfVbA42PyQyYHRY9XB
	D0wBjFFcNimpOZllqUX6dglcGcv7F7MU9LFVfNt8na2B8R1LFyMnh4SAicSFVzvZIGwxiQv3
	1gPZXBxCAksZJf5PP8AO4cxgkujs+A/lnGOUeLRvDyOEc5ZR4uaECUwg/SwCqhIt0zaDzWIT
	MJSYumk2I4gtIiAucXbtebB9wgL6EudfnmIFsXkF7CX2r5gGFucUsJRofjYTrF5IIFTiwrct
	YHP4geqv/v3EBHGfvcTMK2cYIXoFJX5MvgfWyyygJbF5WxMrhC0vsXnNW2aIOeoSN+7uZp/A
	KDwLScssJC2zkLQsYGRexSiaWppcUJyUnmukV5yYW1yal66XnJ+7iRES0F93MC49ZnWIUYCD
	UYmHt0NYJlyINbGsuDL3EKMEB7OSCC//dqAQb0piZVVqUX58UWlOavEhRmkOFiVx3pm73ocI
	CaQnlqRmp6YWpBbBZJk4OKUaGLv3Kio0vV5zf3GeXp2oSkj35n2p1/5yF3ocfj6nT/f/hOdr
	PY8zPNjA6S+fzXVLe9tLYf6QpKKlc2Onmbe0Tsp4fKtoWZI4v9nC9p/FFcub/Cz3COxexasx
	6VDyDw3ObPk83vx5Iaoin1sZH/8xPzh3cY/SdZfHTv+PbYqOKswTvjG3ia2PSYmlOCPRUIu5
	qDgRAGwvxFdkAgAA
X-Seq: zsh-workers 38325

On Sat, 23 Apr 2016 15:14:36 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Apr 24,  4:30am, Roger Qiu wrote:
> }
> }  > gm convert -compress JPEG - - < input.jpg > output.jpg
> } gm convert: Corrupt JPEG data: 873 extraneous bytes before marker 0xd9 
> } (/tmp/gmo1fx92).
> 
> I suspect you are encountering the issue that "gm" wants input.jpg in
> binary mode, but zsh's input redirection operator has forced it to text
> mode.  A lengthy comment in Src/main.c (copypasted below) explains this.  

Mounting the filesystem within Cygwin as binary works here.  Typically
that's the right thing to do if you're dealing with Unix-y type files,
but if you want reasonably transparent handling of Windows text files
it's not the right thing to do.

pws

