On Wed, Jan 12, 2011 at 02:47:28AM +0100, Jakub Wilk wrote:
> Uhm, sorry, no, file cannot be used to determine encodings. Besides,
> UTF-8 is a superset of ASCII, so everything is all right according
> to file.

A great example is:

   fu...@cthulhu:~$ echo // | file -
   /dev/stdin: ASCII C++ program text

Just feeding it a file containing nothing but a pair of slashes is
enough to confuse file(1) into thinking it's C++ source code.
-- 
{ IRL(Jeremy_Stanley); WWW(http://fungi.yuggoth.org/); PGP(43495829);
WHOIS(STANL3-ARIN); SMTP([email protected]); FINGER([email protected]);
MUD([email protected]:6669); IRC([email protected]#ccl);
ICQ(114362511); YAHOO(crawlingchaoslabs); AIM(dreadazathoth); }


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to