From: Michael Welsh Duggan <md5i@cs.cmu.edu>
Subject: Re: Mule Emacs 20.3 w/enable-multibyte-characters set to nil
Date: Mon, 12 Jul 1999 15:53:31 GMT [thread overview]
Message-ID: <v1tvhbpx3t5.fsf@peoria.mt.cs.cmu.edu> (raw)
In-Reply-To: <rzqn1x2recb.fsf@djlvig.dl.ac.uk>
Dave Love <d.love@dl.ac.uk> writes:
> >>>>> "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> 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)
next prev parent reply other threads:[~1999-07-12 15:53 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
1999-07-12 15:53 ` Michael Welsh Duggan [this message]
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=v1tvhbpx3t5.fsf@peoria.mt.cs.cmu.edu \
--to=md5i@cs.cmu.edu \
/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).