From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Coding system conversion error Date: Sun, 13 Feb 2005 09:14:01 +0900 (JST) Message-ID: <200502130014.JAA26774@etlken.m17n.org> References: <20050205170221.ZTBD24781.mxfep02.bredband.com@coolsville.localdomain> <738f9db09f1986269b8f5719d45d2dd5@swipnet.se> <4207DAF0.6000204@swipnet.se> <4209342E.5010701@swipnet.se> <165be0ad579be34852d18cc600114175@swipnet.se> <420BD292.6040607@swipnet.se> <200502120157.KAA24490@etlken.m17n.org> <30e47fd1ee5ebcc03c15fe8c905bc525@swipnet.se> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1108255751 26854 80.91.229.2 (13 Feb 2005 00:49:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 Feb 2005 00:49:11 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 13 01:49:10 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D07wI-00032s-Sf for ged-emacs-devel@m.gmane.org; Sun, 13 Feb 2005 01:48:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D08BX-0003OP-Et for ged-emacs-devel@m.gmane.org; Sat, 12 Feb 2005 20:04:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D0877-0001AZ-3t for emacs-devel@gnu.org; Sat, 12 Feb 2005 19:59:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D0875-0001AD-Vh for emacs-devel@gnu.org; Sat, 12 Feb 2005 19:59:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D082z-0000M0-AF; Sat, 12 Feb 2005 19:55:37 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D07Oo-00006j-6i; Sat, 12 Feb 2005 19:14:06 -0500 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.12.3/8.12.3/Debian-7.1) with ESMTP id j1D0E2XD028152; Sun, 13 Feb 2005 09:14:02 +0900 Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.12.3/8.12.3/Debian-7.1) with ESMTP id j1D0E1PN017223; Sun, 13 Feb 2005 09:14:01 +0900 Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id JAA26774; Sun, 13 Feb 2005 09:14:01 +0900 (JST) Original-To: "Jan D." In-reply-to: <30e47fd1ee5ebcc03c15fe8c905bc525@swipnet.se> (jan.h.d@swipnet.se) 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33323 gmane.emacs.pretest.bugs:5847 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33323 In article <30e47fd1ee5ebcc03c15fe8c905bc525@swipnet.se>, "Jan D." writes: > If the multibyte string is generated by an error and this is one of the > places where we can detect the error, should we not keep the xassert? storm@cua.dk (Kim F. Storm) writes: > I agree, but since the source of the error is in Lisp code, it would > be more helpful to signal an error rather than abort. I agree that signaling an error is better than xassert. But, it seems that a function in selection-converter-alist can return a multibyte string as long as we have a fixed rule about how to handle it. And "converting to a unibyte string by string-make-unibyte" seems to be a good rule. --- Ken'ichi HANDA handa@m17n.org