From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/24184 Path: main.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.gnus.general Subject: Re: Mule Emacs 20.3 w/enable-multibyte-characters set to nil Date: Mon, 12 Jul 1999 15:53:31 GMT Organization: Carnegie Mellon University : KANTOO Project Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035161794 7307 80.91.224.250 (21 Oct 2002 00:56:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:56:34 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA03400 for ; Mon, 12 Jul 1999 11:57:44 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id KAB13820; Mon, 12 Jul 1999 10:53:59 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 12 Jul 1999 10:54:46 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id KAA19312 for ; Mon, 12 Jul 1999 10:54:35 -0500 (CDT) Original-Received: from sunsite.auc.dk (sunsite.auc.dk [130.225.51.30]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id LAA03319 for ; Mon, 12 Jul 1999 11:53:33 -0400 (EDT) Original-Received: (qmail 9170 invoked by uid 509); 12 Jul 1999 15:53:32 -0000 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: emacs.ding Mail-Copies-To: never Original-Lines: 46 User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) Emacs/20.3.10 Original-NNTP-Posting-Host: 128.2.110.42 Original-X-Complaints-To: news@sunsite.auc.dk Original-X-Trace: sunsite.auc.dk 931794811 128.2.110.42 (Mon, 12 Jul 1999 17:53:31 MET DST) Original-NNTP-Posting-Date: Mon, 12 Jul 1999 17:53:31 MET DST Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:24184 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:24184 Dave Love writes: > >>>>> "MWD" == Michael Welsh Duggan writes: > > MWD> Lars Magne Ingebrigtsen writes: > >> Bill White writes: > >> > >> > lmi> (insert (prin1-to-string "høa")) > >> > lmi> => "h\370a" > >> > > >> > I get exactly that with "GNU Emacs 20.3.11.1 (i586-pc-linux-gnu, X > >> > toolkit)" in *scratch* after M-x toggle-enable-multibyte-characters. > >> > >> Darn. Then I guess it's supposed to be that way. Er... Are there no > >> Emacs-MULE people on this mailing list? > > MWD> However, the display-table is still set to display `\370' > MWD> instead of `ø'. > > If so, it's irrelevant. The string contains only ASCII: > > (string-to-vector (prin1-to-string "høa")) > => [34 104 92 51 55 48 97 34] > > I don't know what the complaint actually is or what larsi wants, but > perhaps see the optional arg of `prin1-to-string'. When, from multibyte code, I do an (insert (prin1-to-string "høa")) into a unibyte buffer, I get what Lars does. I.e., "h\370a". This is, of course, correct assuming you are dealing with iso-8859-1. However, if will not display as `ø' when represented thus unless the display table is set up properly. I find the revelation that (string-to-vector (prin1-to-string "h\370a")) in a unibyte buffer returns [34 104 92 51 55 48 97 34] surprising, but as an internal encoding it doesn't really end up affecting the display of the buffer, which is what I believe the problem Lars was having was about. If I am incorrect in any of this, feel free to correct me, as I am always a little crestfallen when advice or information I have offered is, in actuality, wrong. -- Michael Duggan (md5i@cs.cmu.edu)