This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

> >
> >  ~ $   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!
> 
> 
> This is a change (or bug) in 'file', not Cygwin.  I get the same thing as 
> you
> do with Cygwin's version on FC4.  If you think there is an issue here, you
> should take it upstream.

Right, I was going to mention the same thing.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]