From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: michael@cadilhac.name (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) Newsgroups: gmane.emacs.devel Subject: Re: C file recoginzed as image file Date: Sun, 07 Jan 2007 10:28:01 +0100 Organization: Epita/LRDE Message-ID: <87lkkfw5i6.fsf@lrde.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2039435646==" X-Trace: sea.gmane.org 1168158497 22267 80.91.229.12 (7 Jan 2007 08:28:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 Jan 2007 08:28:17 +0000 (UTC) Cc: Chris Moore , c.a.rendle@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 07 09:28:13 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H3TNs-0004a8-Ka for ged-emacs-devel@m.gmane.org; Sun, 07 Jan 2007 09:28:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3TNs-000737-4E for ged-emacs-devel@m.gmane.org; Sun, 07 Jan 2007 03:28:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H3TNg-000732-3G for emacs-devel@gnu.org; Sun, 07 Jan 2007 03:27:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H3TNe-00072q-Dm for emacs-devel@gnu.org; Sun, 07 Jan 2007 03:27:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3TNe-00072n-8V for emacs-devel@gnu.org; Sun, 07 Jan 2007 03:27:50 -0500 Original-Received: from [213.251.189.42] (helo=42.mail-out.ovh.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1H3TNd-0005CI-PS for emacs-devel@gnu.org; Sun, 07 Jan 2007 03:27:50 -0500 Original-Received: (qmail 26355 invoked by uid 503); 7 Jan 2007 08:27:51 -0000 Original-Received: from b6.ovh.net (HELO mail242.ha.ovh.net) (213.186.33.56) by 42.mail-out.ovh.net with SMTP; 7 Jan 2007 08:27:51 -0000 Original-Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 7 Jan 2007 08:27:46 -0000 Original-Received: from ivr94-6-82-230-255-91.fbx.proxad.net (HELO localhost) (82.230.255.91) by ns0.ovh.net with SMTP; 7 Jan 2007 08:27:44 -0000 Original-To: rms@gnu.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEVWPh+Tai+5r5YKBAEU CQQzGAtiq7gjAAACR0lEQVQ4jW2UzW7lIAyFzVW8BzTZX5DmCZLuU2H2pMXv/ypzbK7aSh2kRCRf /HNsE0q7Sg+RQ7JFKaqtrRNAl5AIIKe6D5DBqgbmUAe5hBI1wIRFAHjeM0RKtZi7XVVEpb0BSNfA IddChChT5DildSLWOWhY5IEItMnncZgFcUAc/5jjwCMsDosRNdfKPDTFEdVBW8C+RebDb4N5Orio RhM1+11IJyx0ng2+LryFHBMPDQDYHrY6IfGuU3ouiXTQNE8LIJDKOWpNxERTFrggQwRPd7USUsTW fJ0XbR3bdj5KgBYy4SACpxDeUYEUAzLmtJ1iIrD2gczPq8Qomjhsh/RjGIgKIO8p7NITjwlx7WID nsnQe5NeuTvoBpi8LX6vLLOh5icjOHqBypgnuSp7M+RE1agbQKHQr5E2z1WObhYW4gMqeGQL7joM jCf2DxSk5ApADSYHfFF4igNfJZL1z0GKP0FN02s4XiDXr7V5P94W6I9v8MfBOQDmfwAaVYt+x8Da v4DJvX8BAdin3Knm5yMZYAO4ABDkDniZLLfi4P40gP1F0TPGZOu0CGwA1lcowxwlGy6A9705mD0V jHCxwVZT/hYdRJVUGZNlx6l7ScQBTluof6Wj6bsPYlvpwoTvXFD9gHPn2TZPF3ntI2ecxVrW5MrV XiCie5EeNa7BlWu/HNSkprDUva163PHxAv5jyGV7gVzyAghSKOTnat85UIYFICXbD2NV9rRiv0BS tKQsg6OHH4A15F1WW+UHKHHa32h6aPnAm3/pUcWp+WYnTQAAAABJRU5ErkJggg== In-Reply-To: (Richard Stallman's message of "Sat\, 06 Jan 2007 22\:47\:09 -0500") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux) X-Ovh-Remote: 82.230.255.91 (ivr94-6-82-230-255-91.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.5/N X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64904 Archived-At: --===============2039435646== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Richard Stallman writes: > http://www.w3.org/Graphics/GIF/spec-gif89a.txt tells me that the first > 3 bytes contain the fixed value 'GIF', and the next 3 bytes contain > the version number: > > Can you find the list of actual valid version numbers? I'd rather > recognize those specific numberd, rather than any two-digit number > whatsoever. According to /usr/share/misc/file/magic, a GIF file is described as=20 0 string GIF8 GIF image data >4 string 7a \b, version 8%s, >4 string 9a \b, version 8%s, So the regexp should be GIF8[79]a . Actually, the two only versions of GIF are indeed 87a and 89a (named after the year each format was created). We probably should stick to the definitions of /usr/share/misc/file/magic to create our magic variable. =2D-=20 | Micha=EBl `Micha' Cadilhac | La culture c'est comme la confitu= re, | | Epita/LRDE Promo 2007 | c'est meilleur avec du pain. = | | http://michael.cadilhac.name | -- MOI59 = | `--JID: michael.cadilhac@gmail.com--' - = --' --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFoL0lUJhDmOfFA3URAqUJAJ9B6IRhq7jWoDR1gmVS6oLXAH9sSgCgh0Q5 YrNPbK8nskN56Bh1IuF3Qdo= =a1ch -----END PGP SIGNATURE----- --=-=-=-- --===============2039435646== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============2039435646==--