emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: imap.el: international/utf-7.el vs. gnus/utf7.el


From: Reiner Steib
Subject: Re: imap.el: international/utf-7.el vs. gnus/utf7.el
Date: Tue, 20 Nov 2007 22:08:12 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

On Wed, Nov 07 2007, Kenichi Handa wrote:

>> > I think the right thing is to uncomment all codes for
>> > utf-7-map in utf-7.el, and modify gnus to use normal
>> > encode/decode-coding-region/string with utf-7-imap.
>> >
>> > I've just committed the former change.  

I have modified gnus/utf7.el accordingly:

        * utf7.el (utf7-encode, utf7-decode): Use coding system
        `utf-7'/`utf-7-imap' from utf-7.el' if available.

> No, don't use utf-7-encode directly but use encode-coding-string.
>
> For instance, this[...] can simply be:
>
> (defun utf7-encode-NEW (string &optional for-imap)
>   (encode-coding-string string (if for-imap 'utf-7-imap 'utf-7)))
>
> And the test for the availability is:
>
> (and (coding-system-p 'utf-7) (coding-system-p 'utf-7-imap))

Thanks for the hints.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]