X-Spam-Check-By: sourceware.org Date: Thu, 07 Dec 2006 09:24:22 -0500 From: "Kenneth Nellis" Subject: RE: printf '\377\376h\000\r\000\n\000'|file - #wrong result? In-reply-to: <20061206195126.GU9829@calimero.vinschen.de> To: Message-id: <004d01c71a0b$64471150$be32000a@idirect.net> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 11 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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/