From: Kenichi Handa <handa@m17n.org>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org
Subject: Re: Unicode handling breaks Jpeg image detection?
Date: Wed, 25 Jun 2008 11:48:34 +0900 [thread overview]
Message-ID: <E1KBL3i-00070z-0B@etlken.m17n.org> (raw)
In-Reply-To: <87od5qbn0b.fsf@stupidchicken.com> (message from Chong Yidong on Tue, 24 Jun 2008 16:23:32 -0400)
In article <87od5qbn0b.fsf@stupidchicken.com>, Chong Yidong <cyd@stupidchicken.com> 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
handa@ni.aist.go.jp
next prev parent reply other threads:[~2008-06-25 2:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-24 20:23 Unicode handling breaks Jpeg image detection? Chong Yidong
2008-06-25 2:48 ` Kenichi Handa [this message]
2008-06-25 12:37 ` Stephen Berman
2008-07-04 7:20 ` Kenichi Handa
2008-07-04 8:40 ` Stephen Berman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1KBL3i-00070z-0B@etlken.m17n.org \
--to=handa@m17n.org \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.