emacs-devel
[Top][All Lists]
Advanced

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

Re: Unicode handling breaks Jpeg image detection?


From: Kenichi Handa
Subject: Re: Unicode handling breaks Jpeg image detection?
Date: Wed, 25 Jun 2008 11:48:34 +0900
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)

In article <address@hidden>, Chong Yidong <address@hidden> writes:

> In Emacs 23, jpeg content autodetection seems to be broken.  I think
> this may be an encoding issue.  To see this, rename any jpeg image from
> foo.jpg to foo.JPG (to turn off file-name detection), and open it in
> Emacs.  Emacs 23 fails to detect the image, while Emacs 22 works.

> In a buffer containing the exact same jpeg data, do

>   M-: (string-match "\\`\xff\xd8" (buffer-string)) RET

> This gives 0 in Emacs 22, and nil in Emacs 23.  This is the check that
> makes image-type-header-regexps and image-jpeg-p fail for Emacs 23.

I've just installed a fix.

---
Kenichi Handa
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]