From: Kenichi Handa <handa@ni.aist.go.jp>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: emacs-w3m@namazu.org, emacs-devel@gnu.org
Subject: Re: detect-coding-with-priority
Date: Fri, 11 Jan 2008 18:59:05 +0900 [thread overview]
Message-ID: <E1JDGfJ-0003lT-4d@etlken.m17n.org> (raw)
In-Reply-To: <b4mabncj4t4.fsf@jpl.org> (message from Katsumi Yamaoka on Fri, 11 Jan 2008 14:43:03 +0900)
In article <b4mabncj4t4.fsf@jpl.org>, Katsumi Yamaoka <yamaoka@jpl.org> writes:
> I noticed that `detect-coding-with-priority' doesn't work
> recently in the Emacs trunk and Unicode-2, though I don't know
> when it began.
> (with-temp-buffer
> (set-buffer-multibyte nil)
> (insert (encode-coding-string "あいうえお" 'shift_jis))
> (detect-coding-with-priority (point-min) (point-max)
> '((coding-category-sjis . shift_jis))))
>>> (raw-text no-conversion)
I think the following change is the culprit.
2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
* coding.c (detect_coding_iso2022): New arg
latin_extra_code_state. Allow Latin extra codes only
when *latin_extra_code_state is nonzero.
(detect_coding_mask): If there is a NULL byte, detect the encoding
as UTF-16 or binary. If Latin extra codes exist, detect the
encoding as ISO-2022 only when there's no other proper encoding is
found.
I'm now investigating what's wrong.
---
Kenichi Handa
handa@ni.aist.go.jp
next prev parent reply other threads:[~2008-01-11 9:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-11 5:43 [emacs-w3m:09920] detect-coding-with-priority Katsumi Yamaoka
2008-01-11 8:00 ` Stephen Berman
2008-01-11 9:59 ` Kenichi Handa [this message]
2008-01-11 11:30 ` detect-coding-with-priority Kenichi Handa
2008-01-11 11:50 ` [emacs-w3m:09929] detect-coding-with-priority Katsumi Yamaoka
2008-01-14 1:01 ` detect-coding-with-priority Kenichi Handa
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=E1JDGfJ-0003lT-4d@etlken.m17n.org \
--to=handa@ni.aist.go.jp \
--cc=emacs-devel@gnu.org \
--cc=emacs-w3m@namazu.org \
--cc=yamaoka@jpl.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.