From: Dave Love <d.love@dl.ac.uk>
Subject: Re: Mule Emacs 20.3 w/enable-multibyte-characters set to nil
Date: 11 Jul 1999 23:50:12 +0100 [thread overview]
Message-ID: <rzqn1x2recb.fsf@djlvig.dl.ac.uk> (raw)
In-Reply-To: Michael Welsh Duggan's message of "Fri, 09 Jul 1999 19:58:50 GMT"
>>>>> "MWD" == Michael Welsh Duggan <md5i@cs.cmu.edu> writes:
MWD> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>> Bill White <billw@wolfram.com> 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'.
next prev parent reply other threads:[~1999-07-11 22:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-09 16:05 Lars Magne Ingebrigtsen
1999-07-09 16:21 ` Didier Verna
1999-07-09 20:55 ` Lars Magne Ingebrigtsen
1999-07-09 17:20 ` Bill White
1999-07-09 18:27 ` Lars Magne Ingebrigtsen
1999-07-09 19:57 ` Michael Welsh Duggan
1999-07-09 20:56 ` Lars Magne Ingebrigtsen
1999-07-11 22:50 ` Dave Love [this message]
1999-07-12 15:53 ` Michael Welsh Duggan
1999-07-14 19:20 ` Dave Love
1999-07-15 4:53 ` Michael Welsh Duggan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=rzqn1x2recb.fsf@djlvig.dl.ac.uk \
--to=d.love@dl.ac.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).