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

Kenichi Handa wrote:
> 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?

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

  reply	other threads:[~2006-02-15 20:48 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
2006-02-15 20:48   ` Paul Pogonyshev [this message]
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=200602152248.59556.pogonyshev@gmx.net \
    --to=pogonyshev@gmx.net \
    --cc=handa@m17n.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).