[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unencodable-char-position bug?
From: |
Paul Pogonyshev |
Subject: |
Re: unencodable-char-position bug? |
Date: |
Wed, 15 Feb 2006 22:48:59 +0200 |
User-agent: |
KMail/1.7.2 |
Kenichi Handa wrote:
> 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?
Just update to CVS HEAD, the same result, zero. Weird...
> > 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))
This works, i.e. (memq 'mule-utf-8 (find-coding-systems-string "ы"))
evaluates to non-nil...
Paul