From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Unicode handling breaks Jpeg image detection? Date: Fri, 04 Jul 2008 16:20:26 +0900 Message-ID: References: <87od5qbn0b.fsf@stupidchicken.com> <87tzfhadwr.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=ISO-2022-JP-2 X-Trace: ger.gmane.org 1215156058 20223 80.91.229.12 (4 Jul 2008 07:20:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jul 2008 07:20:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 04 09:21:43 2008 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 1KEfbz-0004dh-8p for ged-emacs-devel@m.gmane.org; Fri, 04 Jul 2008 09:21:43 +0200 Original-Received: from localhost ([127.0.0.1]:54180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEfb8-0004u1-9D for ged-emacs-devel@m.gmane.org; Fri, 04 Jul 2008 03:20:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEfb3-0004ss-6M for emacs-devel@gnu.org; Fri, 04 Jul 2008 03:20:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEfaz-0004qn-5r for emacs-devel@gnu.org; Fri, 04 Jul 2008 03:20:43 -0400 Original-Received: from [199.232.76.173] (port=35963 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEfay-0004qg-Vs for emacs-devel@gnu.org; Fri, 04 Jul 2008 03:20:41 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:33791) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KEfay-0008H4-KU for emacs-devel@gnu.org; Fri, 04 Jul 2008 03:20:40 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KEfaw-00074t-RJ for emacs-devel@gnu.org; Fri, 04 Jul 2008 03:20:39 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id m647KR2H001970; Fri, 4 Jul 2008 16:20:27 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id m647KQ8T007808; Fri, 4 Jul 2008 16:20:26 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id m647KQ2C018612; Fri, 4 Jul 2008 16:20:26 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1KEfak-0005NU-HB; Fri, 04 Jul 2008 16:20:26 +0900 In-reply-to: <87tzfhadwr.fsf@escher.local.home> (message from Stephen Berman on Wed, 25 Jun 2008 14:37:40 +0200) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by mx20.gnu.org: Solaris 9 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:100329 Archived-At: Sorry for the late response. In article <87tzfhadwr.fsf@escher.local.home>, Stephen Berman writes: > This fix results in a file mode specification error. To reproduce: > 1. C-x C-f /tmp/test > 2. Type the letter "$(D+#(B" (a-umlaut). > 3. C-x C-s > 4. C-x k RET > 5. C-x C-f /tmp/test > ==> File mode specification error: (error "Can't convert the 0th > character to unibyte") It seems that this bug is already fixed by Juanma (thanks). 2008-06-27 Juanma Barranquero * image.el (image-jpeg-p): Don't fail if the arg cannot be converted to unibyte; just assume it is not a JPEG. Use `string-match-p'. (image-type-from-data, image-type-from-file-name): Use `string-match-p'. (image-type-from-buffer): Use `looking-at-p'. --- Kenichi Handa handa@ni.aist.go.jp