[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
detect-coding-with-priority
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Fri, 11 Jan 2008 14:43:03 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 09920
Hi,
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)
Emacs 22.1 returns (shift_jis emacs-mule raw-text no-conversion)
for this form.
(Emacs-w3m uses this macro for identifying the coding system in
web pages in which the charset is not specified.)
Regards,