From: Chong Yidong <cyd@stupidchicken.com>
To: emacs-devel@gnu.org
Subject: Unicode handling breaks Jpeg image detection?
Date: Tue, 24 Jun 2008 16:23:32 -0400 [thread overview]
Message-ID: <87od5qbn0b.fsf@stupidchicken.com> (raw)
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.
Could someone try to fix this?
next reply other threads:[~2008-06-24 20:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-24 20:23 Chong Yidong [this message]
2008-06-25 2:48 ` Unicode handling breaks Jpeg image detection? Kenichi Handa
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=87od5qbn0b.fsf@stupidchicken.com \
--to=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.