From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/24157 Path: main.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.gnus.general Subject: Re: Mule Emacs 20.3 w/enable-multibyte-characters set to nil Date: 11 Jul 1999 23:50:12 +0100 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 1035161771 7177 80.91.224.250 (21 Oct 2002 00:56:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:56:11 +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 SAA13587 for ; Sun, 11 Jul 1999 18:51:04 -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 RAB07366; Sun, 11 Jul 1999 17:50:56 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 11 Jul 1999 17:51:36 -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 RAA09496 for ; Sun, 11 Jul 1999 17:51:25 -0500 (CDT) Original-Received: from djlvig.dl.ac.uk (djlvig.dl.ac.uk [148.79.112.146]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id SAA13570 for ; Sun, 11 Jul 1999 18:50:21 -0400 (EDT) Original-Received: (from fx@localhost) by djlvig.dl.ac.uk (8.8.7/8.8.5) id XAA03437; Sun, 11 Jul 1999 23:50:14 +0100 Original-To: ding@gnus.org X-Face: "_!nmR@11ZNuumt0oqG"Y3Hfy|;FGz)`"ul[G?ah6k-oNyDW?3/Nq3Qab$kUnUQ_d4};kPl R=}-Vqfo|S5mThi-kaBR=>%g5a3-OvnEhdHu{^APIaP:b}0m!$bDC>SX zz'r)e?`at?tpD*+~b+pf In-Reply-To: Michael Welsh Duggan's message of "Fri, 09 Jul 1999 19:58:50 GMT" Original-Lines: 42 User-Agent: Gnus/5.07007 (Pterodactyl Gnus v0.70) Emacs/20.3 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:24157 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:24157 >>>>> "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> This is normal. MWD> Here is the situation: I don't think so. MWD> "høa" has a internal multibyte representation of "\201\370". Yes, but that's irrelevant in a unibyte buffer. It's literal bytes. MWD> When inserting in the unibyte buffer, it correctly uses \370 instead MWD> of \201\370 to represent the character `ø'. If it was a multibyte string: (prin1-to-string (decode-coding-string "høa" 'latin-1)) => "\"h\x8f8\ a\"" 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'.