[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

detect-coding-with-priority



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,