From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier " Newsgroups: gmane.emacs.help Subject: Re: multilingual text in frame Date: 21 Jan 2003 12:57:09 -0500 Organization: Yale University Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <5ladhujsi2.fsf@rum.cs.yale.edu> References: <200301201544.h0KFiKIK012501@beta.mvs.co.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043173250 16454 80.91.224.249 (21 Jan 2003 18:20:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 21 Jan 2003 18:20:50 +0000 (UTC) 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 18b30J-0004Ed-00 for ; Tue, 21 Jan 2003 19:20:07 +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 18b2mQ-00040H-03 for gnu-help-gnu-emacs@m.gmane.org; Tue, 21 Jan 2003 13:05:46 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.ycc.yale.edu!rum.cs.yale.edu!rum.cs.yale.edu Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: rum.cs.yale.edu User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-Original-NNTP-Posting-Host: rum.cs.yale.edu X-Original-Trace: 21 Jan 2003 12:57:10 -0500, rum.cs.yale.edu Original-Xref: shelby.stanford.edu gnu.emacs.help:109308 Original-To: 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:5833 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5833 >> 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. I think that multibyte-char-to-unibyte and its friends like string-make-unibyte should be avoided as much as possible. In most cases, they're only used because the author doesn't really understand what he's doing (I don't know if that's the case here, because I only saw Kenichi's reply but not the original post). Better use something like (encode-coding-string str locale-coding-system) so it's clear which coding-system is being used. Stefan