From: Kenichi Handa <handa@ni.aist.go.jp>
To: Jason Rumney <jasonr@gnu.org>
Cc: emacs-pretest-bug@gnu.org, topia@clovery.jp
Subject: Re: 23.0.50; utf7-decode failed with non latin-1 charactor
Date: Wed, 07 Nov 2007 21:51:16 +0900 [thread overview]
Message-ID: <E1IpkNI-0003pL-8N@etlken.m17n.org> (raw)
In-Reply-To: <4731ABC9.4080604@gnu.org> (message from Jason Rumney on Wed, 07 Nov 2007 12:12:57 +0000)
In article <4731ABC9.4080604@gnu.org>, Jason Rumney <jasonr@gnu.org> writes:
> Kenichi Handa wrote:
> > It seems that fucntions utf-7-decode and utf-7-encode are
> > designed to be called only as pre-write/post-read functions
> > of a coding system utf-7 (and commented out coding system
> > utf-7-imap) in lisp/international/utf-7.el.
> >
> Is it a requirement for such functions to return nil?
> If not, can we return the encoded string instead of nil,
utf-7-encode is called from pre-write functions
utf-7-pre-write-conversion and
utf-7-imap-pre-write-conversion, and they expects
utf-7-encode to put the encoded result in a new buffer.
So, it's possible to make utf-7-encode return a string, but
it's inefficient to make a string that is just ignored when
callled from utf-7-pre-write-conversion.
> to make the
> undocumented string FROM argument useful (as a drop in replacement for
> the gnus utf7-encode).
Why is that necessary? We can use encode-coding-string.
I want to keep the entry points for encoding and decoding
only to the functions decode/encode-coding-region/string.
---
Kenichi Handa
handa@ni.aist.go.jp
next prev parent reply other threads:[~2007-11-07 12:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-01 17:29 23.0.50; utf7-decode failed with non latin-1 charactor Topia
2007-11-02 12:40 ` Jason Rumney
2007-11-03 3:58 ` Richard Stallman
2007-11-05 7:02 ` Kenichi Handa
2007-11-06 19:53 ` imap.el: international/utf-7.el vs. gnus/utf7.el (was: 23.0.50; utf7-decode failed with non latin-1 charactor) Reiner Steib
2007-11-07 0:36 ` Kenichi Handa
2007-11-20 21:08 ` imap.el: international/utf-7.el vs. gnus/utf7.el Reiner Steib
2007-11-07 12:12 ` 23.0.50; utf7-decode failed with non latin-1 charactor Jason Rumney
2007-11-07 12:51 ` Kenichi Handa [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-11-01 17:45 Topia
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=E1IpkNI-0003pL-8N@etlken.m17n.org \
--to=handa@ni.aist.go.jp \
--cc=emacs-pretest-bug@gnu.org \
--cc=jasonr@gnu.org \
--cc=topia@clovery.jp \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.