delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/04/15:48:08

X-Spam-Check-By: sourceware.org
Message-Id: <200612042047.kB4KlhcV005862@tigris.pounder.sol.net>
To: cygwin AT cygwin DOT com
From: cygzx AT trodman DOT com (Tom Rodman)
Reply-to: cygwin AT cygwin DOT com
X-note: From should match addr u signed up w/, else post will not show for > 90 min (3/2005)
Subject: printf '\377\376h\000\r\000\n\000'|file - #wrong result?
X-note: getting started: oPS1=$PS1 PS1="\w $ " cd; date;uname -a
X-note: for a response to thread, think we need both "In-Reply-To", and "references"
X-note: re cygcheck.out o filter through /adm/bin/app/s/post_scrub_*1 o after mhbuild, if cygcheck.out attached, add this after "Content-Type" line: Content-Disposition: attachment; filename="cygcheck.out"
X-note: o cygcheck -s |egrep '^Runni' #use to document "where you are"
X-note: COMMON MISTAKEs: o leaving off real name "(Tom Rodman)" in From: o forgetting "rebaseall" (not needed for cygwin1.dll snaps tho) o besure to *reload* http://cygwin.com/snapshots/ # to get absolute latest o get all latest packages, not just latest snapshot o adjust the reply quoting to *not* use real email addresses o do not enclose huge attachments, put them on yz4.org instead
Date: Mon, 04 Dec 2006 14:47:43 -0600
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Should this directed to the "file" package maintainer?:

   ~ $   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.

--
thanks,
Tom 

--
PS
  above unicode contains one line with a single "h" char

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