From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: multilingual text in frame Date: Mon, 20 Jan 2003 21:34:35 +0300 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1659-Mon20Jan2003213435+0200-eliz@is.elta.co.il> References: <200301201544.h0KFiKIK012501@beta.mvs.co.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1043091498 13608 80.91.224.249 (20 Jan 2003 19:38:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2003 19:38:18 +0000 (UTC) Cc: p.lord@russet.org.uk Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ahkO-0003XD-00 for ; Mon, 20 Jan 2003 20:38:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ahlJ-0004lU-06 for gnu-help-gnu-emacs@m.gmane.org; Mon, 20 Jan 2003 14:39:13 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18ahkk-0004RZ-00 for help-gnu-emacs@gnu.org; Mon, 20 Jan 2003 14:38:38 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18ahjo-0003iy-00 for help-gnu-emacs@gnu.org; Mon, 20 Jan 2003 14:37:43 -0500 Original-Received: from gandalf.inter.net.il ([192.114.186.22]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ahiu-0003EU-00 for help-gnu-emacs@gnu.org; Mon, 20 Jan 2003 14:36:44 -0500 Original-Received: from zaretsky (adsl-ayalon-pc-129-164.inter.net.il [213.8.129.164]) by gandalf.inter.net.il (Mirapoint Messaging Server MOS 3.2.1-GA) with ESMTP id ADF93535; Mon, 20 Jan 2003 21:36:15 +0200 (IST) Original-To: ehud@unix.mvs.co.il X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <200301201544.h0KFiKIK012501@beta.mvs.co.il> (ehud@unix.mvs.co.il) Original-cc: handa@m17n.org Original-cc: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5768 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5768 > Date: Mon, 20 Jan 2003 17:44:20 +0200 > From: "Ehud Karni" > > I defined a function `multibyte-string-to-unibyte', it converts each > character in the input string by using `multibyte-char-to-unibyte'. > I think it should be a built-in (C) function. Why didn't you simply use encode-coding-string? It _is_ a built-in primitive. (IMHO, one should stay away of the multibyte <-> unibyte conversion functions such as multibyte-char-to-unibyte, since the decisions they make about how to encode/decode characters are very complex and hard to explain and remember. By contrast, explicit encoding functions let you specify the encoding, so you are the boss ;-)