emacs-devel
[Top][All Lists]
Advanced

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

detect-coding-with-priority


From: Katsumi Yamaoka
Subject: detect-coding-with-priority
Date: Fri, 11 Jan 2008 14:43:03 +0900
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux)

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,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]