From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: unencodable-char-position bug? Date: Wed, 15 Feb 2006 11:36:06 +0900 Message-ID: References: <200602150019.25230.pogonyshev@gmx.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1139974349 21776 80.91.229.2 (15 Feb 2006 03:32:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Feb 2006 03:32:29 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 15 04:32:28 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F9DP0-0004QK-IV for ged-emacs-devel@m.gmane.org; Wed, 15 Feb 2006 04:32:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F9DOZ-0005gk-21 for ged-emacs-devel@m.gmane.org; Tue, 14 Feb 2006 22:31:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F9CWh-0000vL-KL for emacs-devel@gnu.org; Tue, 14 Feb 2006 21:36:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F9CWf-0000rR-2x for emacs-devel@gnu.org; Tue, 14 Feb 2006 21:36:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F9CWd-0000qq-PB for emacs-devel@gnu.org; Tue, 14 Feb 2006 21:36:16 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1F9CbR-0000di-BC for emacs-devel@gnu.org; Tue, 14 Feb 2006 21:41:13 -0500 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id k1F2a7Dp024698; Wed, 15 Feb 2006 11:36:07 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id k1F2a6ix028304; Wed, 15 Feb 2006 11:36:07 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1F9CWU-0002uj-00; Wed, 15 Feb 2006 11:36:06 +0900 Original-To: Paul Pogonyshev In-reply-to: <200602150019.25230.pogonyshev@gmx.net> (message from Paul Pogonyshev on Wed, 15 Feb 2006 00:19:25 +0200) 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) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:50549 Archived-At: In article <200602150019.25230.pogonyshev@gmx.net>, Paul Pogonyshev writes: > Is it correct that > (unencodable-char-position 0 1 'utf-8 nil "=D1=8B") > 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