delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/07/09:25:09

X-Spam-Check-By: sourceware.org
Date: Thu, 07 Dec 2006 09:24:22 -0500
From: "Kenneth Nellis" <knellis AT syntek-usa DOT com>
Subject: RE: printf '\377\376h\000\r\000\n\000'|file - #wrong result?
In-reply-to: <20061206195126.GU9829@calimero.vinschen.de>
To: <cygwin AT cygwin DOT com>
Message-id: <004d01c71a0b$64471150$be32000a@idirect.net>
MIME-version: 1.0
X-Mailer: Microsoft Office Outlook 11
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

FWIW, my older 3.39 version of file, running on Redhat Enterprise Linux,
is clearly broken, or perhaps its "magic" file is. It reports both my
UTF-16BE and UTF-16LE files as UTF-16LE. So it seems pointless to 
debate which version of file is more broken than the other. (And, of
course, this is not a Cygwin issue.)

--Ken Nellis

-----Original Message-----
From: Corinna Vinschen 
Sent: Wednesday, December 06, 2006 2:51 PM
To: cygwin AT cygwin DOT com
Subject: Re: printf '\377\376h\000\r\000\n\000'|file - #wrong result?

On Dec  6 14:34, Larry Hall (Cygwin) wrote:
> Tom Rodman wrote:
> >Maybe not a new problem, but this older (flame me) cygwin version works 
> >better:

No, not "better", "different".  Newer versions of file happen to know
about new file types which older versions of file don't.  
file-4.16 recognizes the "header" of your string as the magic nuber of
an MPEG ADTS, layer I, v1, 192 kBits, 32 kHz, Stereo file.

Again, file is using large lists of file header and typical content
information of many different file types.  The result of file is
NOT the ultimate truth, but an aproximation based on the data files.


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