[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unencodable-char-position bug?
From: |
Kenichi Handa |
Subject: |
Re: unencodable-char-position bug? |
Date: |
Wed, 15 Feb 2006 11:36:06 +0900 |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) |
In article <address@hidden>, Paul Pogonyshev <address@hidden> writes:
> Is it correct that
> (unencodable-char-position 0 1 'utf-8 nil "ы")
> evaluates to 0?
No. But my Emacs (CVS HEAD) evaluates that to nil, which is
correct. Which version of Emacs are you using?
> In general, what is the best way to determine if given character
> is encodable in given coding system?
Using unencodable-char-position is good. You can also use
these:
(memq 'SOME_CODING_SYSTEM (find-coding-systems-region FROM TO))
or
(memq 'SOME_CODING_SYSTEM (find-coding-systems-string STRING))
---
Kenichi Handa
address@hidden