Gnus development mailing list
 help / color / mirror / Atom feed
From: ShengHuo ZHU <zsh@cs.rochester.edu>
Subject: Re: \201 *waugh*
Date: 28 Dec 2000 13:27:01 -0500	[thread overview]
Message-ID: <2ng0j8z9je.fsf@tiger.jia.vnet> (raw)
In-Reply-To: <m3zohgb9sz.fsf@quimbies.gnus.org>

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> After upgrading to the latest cvs, nnwfm stopped working with Emacs
> 20.6.  Which is really weird, since nnwfm didn't change at all.
> 
> Now -- I insert lots of stuff into a unibyte buffer.  I then use
> w3-parse on the stuff in the buffer.  I then get strings like
> 
>   "aksje-\345r"
> 
> Now, how on earth do I get that inserted back into a buffer, and why
> did it stop working?
> 
> (insert "aksje-\345r")
> => aksje-år
> 
> That's not what I want.  I want something I can then run
> decode-coding-region on, like in all other groups.

When a unibyte string is inserted into a multibyte buffer, Emacs
automatically converts 8-bit characters into iso8859-1 characters.  To
insert literally 8-bit characters, you have to use some tricks like

 (insert (string-as-multibyte "aksje-\345r"))

XEmacs doesn't have string-as-multibyte, so we'd better define a
compatible function mm-string-as-multibyte.  Though you may see 
aksje-år in XEmacs buffer if you insert the string, it is OK. XEmacs
people claim that XEmacs doesn't suffer the \201 problem.

ShengHuo



  reply	other threads:[~2000-12-28 18:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-28 19:55 Lars Magne Ingebrigtsen
2000-12-28 18:27 ` ShengHuo ZHU [this message]
2000-12-28 22:10   ` Lars Magne Ingebrigtsen
2000-12-29  6:07     ` ShengHuo ZHU
2000-12-28 18:48 ` Kai Großjohann
2000-12-28 22:12   ` Lars Magne Ingebrigtsen

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=2ng0j8z9je.fsf@tiger.jia.vnet \
    --to=zsh@cs.rochester.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).