[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- From: Kenichi Handa <handa@xxxxxxxxxxxxx>
- Date: Fri, 11 Jan 2008 18:59:05 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 09927
- References: <email@example.com>
In article <b4mabncj4t4.fsf@xxxxxxx>, Katsumi Yamaoka <yamaoka@xxxxxxx> writes:
(B> I noticed that `detect-coding-with-priority' doesn't work
(B> recently in the Emacs trunk and Unicode-2, though I don't know
(B> when it began.
(B> (set-buffer-multibyte nil)
(B> (insert (encode-coding-string "$B$"$$$&$($*(B" 'shift_jis))
(B> (detect-coding-with-priority (point-min) (point-max)
(B> '((coding-category-sjis . shift_jis))))
(B>>> (raw-text no-conversion)
(BI think the following change is the culprit.
(B2008-01-09 Kenichi Handa <handa@xxxxxxxxxxxxx>
(B * coding.c (detect_coding_iso2022): New arg
(B latin_extra_code_state. Allow Latin extra codes only
(B when *latin_extra_code_state is nonzero.
(B (detect_coding_mask): If there is a NULL byte, detect the encoding
(B as UTF-16 or binary. If Latin extra codes exist, detect the
(B encoding as ISO-2022 only when there's no other proper encoding is
(BI'm now investigating what's wrong.