delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/06/14:08:59

X-Spam-Check-By: sourceware.org
Message-Id: <200612061908.kB6J8Yuq021359@tigris.pounder.sol.net>
From: cygzx AT trodman DOT com (Tom Rodman)
Reply-to: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: printf '\377\376h\000\r\000\n\000'|file - #wrong result?
In-reply-to: <200612042047.kB4KlhcV005862@tigris.pounder.sol.net>
References: <200612042047 DOT kB4KlhcV005862 AT tigris DOT pounder DOT sol DOT net>
Date: Wed, 06 Dec 2006 13:08:34 -0600
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Mon 12/4/06 14:47 CST cygwin AT cygwin DOT com wrote:
--snip
>    ~ $   date;uname -a
>    Mon Dec  4 14:31:38 CST 2006
>    CYGWIN_NT-5.0 OurServer121 1.5.22(0.156/4/2) 2006-11-13 17:01 i686 Cygwin
>    ~ $ printf '\377\376h\000\r\000\n\000'|file -
>    /dev/stdin: MPEG ADTS, layer I, v1, 192 kBits, 32 kHz, Stereo
>    --snip
>    ~ $ date;uname -a
>    Mon Dec  4 14:34:15 CST 2006
>    Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
>    ~ $ printf '\377\376h\000\r\000\n\000'|file -
>    standard input:              Little-endian UTF-16 Unicode character data, with CR line terminators
>    ~ $
> 
> From above you can see linux and cygwin "file" output differs.  The printf
> above was inspired recently when "file" mis-identified a unicode file.
> 
> I don't think this is a new problem.

Maybe not a new problem, but this older (flame me) cygwin version works better:

  ~ $   date;uname -a  #box in Bangalore
  Thu Dec  7 00:51:35 IST 2006
  CYGWIN_NT-5.0 XXXblr001 1.3.20(0.73/3/2) 2003-02-08 12:10 i686 unknown unknown Cygwin
  ~ $ cygcheck -c file
  Cygwin Package Information
  Package              Version
  file                 3.39-1

  Use -h to see help about each section
  ~ $ printf '\377\376h\000\r\000\n\000'|file -
  standard input:              Little-endian UTF-16 Unicode character data, with CR line terminators
  ~ $

I understand this is low priority.. Thanks as always for cygwin!

--
Tom

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019