emacs-devel
[Top][All Lists]
Advanced

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

Re: detect-coding-with-priority


From: Kenichi Handa
Subject: Re: detect-coding-with-priority
Date: Fri, 11 Jan 2008 18:59:05 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

In article <address@hidden>, Katsumi Yamaoka <address@hidden> 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  <address@hidden>

        * 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
address@hidden






reply via email to

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