[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: rgbpaint



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:

   fungi@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(fungi@yuggoth.org); FINGER(fungi@yuggoth.org);
MUD(kinrui@katarsis.mudpy.org:6669); IRC(fungi@irc.yuggoth.org#ccl);
ICQ(114362511); YAHOO(crawlingchaoslabs); AIM(dreadazathoth); }


Reply to: