unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: unencodable-char-position bug?
Date: Wed, 15 Feb 2006 11:36:06 +0900	[thread overview]
Message-ID: <E1F9CWU-0002uj-00@etlken> (raw)
In-Reply-To: <200602150019.25230.pogonyshev@gmx.net> (message from Paul Pogonyshev on Wed, 15 Feb 2006 00:19:25 +0200)

In article <200602150019.25230.pogonyshev@gmx.net>, Paul Pogonyshev <pogonyshev@gmx.net> 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
handa@m17n.org

  reply	other threads:[~2006-02-15  2:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-14 22:19 unencodable-char-position bug? Paul Pogonyshev
2006-02-15  2:36 ` Kenichi Handa [this message]
2006-02-15 20:48   ` Paul Pogonyshev
2006-02-17 12:43     ` Kenichi Handa
2006-02-17 19:11       ` Paul Pogonyshev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1F9CWU-0002uj-00@etlken \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).