From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65745 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Re: imap.el: international/utf-7.el vs. gnus/utf7.el Date: Tue, 20 Nov 2007 22:08:12 +0100 Message-ID: References: <87k5p1ho29.wl%topia@clovery.jp> <472B1AD5.3090006@gnu.org> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1195593005 7910 80.91.229.12 (20 Nov 2007 21:10:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Nov 2007 21:10:05 +0000 (UTC) Cc: jasonr@gnu.org, topia@clovery.jp, ding@gnus.org, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: ding-owner+M14241@lists.math.uh.edu Tue Nov 20 22:10:11 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1IuaMD-0002v9-PF for ding-account@gmane.org; Tue, 20 Nov 2007 22:10:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1IuaLu-00039M-Sp; Tue, 20 Nov 2007 15:09:50 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1IuaLt-000396-Lo for ding@lists.math.uh.edu; Tue, 20 Nov 2007 15:09:49 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IuaLl-00048b-EN for ding@lists.math.uh.edu; Tue, 20 Nov 2007 15:09:49 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IuaLh-0002Ti-00 for ; Tue, 20 Nov 2007 22:09:37 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.1/8.14.1) with ESMTP id lAKL9T2d029988; Tue, 20 Nov 2007 22:09:30 +0100 (MET) Original-Received: from localhost (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 513FD12D37; Tue, 20 Nov 2007 22:09:29 +0100 (CET) X-Face: 'bg&jY[8V'W&:=~6w"|>}#4/T;w~36ei4NNMyKRR.a$n=$|sWFPF1y]a\>6kc\*#GN]UDM| Ywv,vbL^XF1nIp\:F=$Ei2o&mEe:%N~,:3]vtQ~s9u$9izmX$IF@VgGl7/,^dbuM<3|AO2}.%|%?kZ 2Y=@\U!~cll^=8Z9ihKq%wmUe1Ky(#kl3T'>Qk0Ia3mCBsTk?E(,X Mail-Followup-To: Kenichi Handa , jasonr@gnu.org, topia@clovery.jp, ding@gnus.org, emacs-devel@gnu.org In-Reply-To: (Kenichi Handa's message of "Wed, 07 Nov 2007 09:36:30 +0900") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) X-DCC-INFN-TO-Metrics: poseidon 1233; Body=5 Fuz1=5 Fuz2=5 X-Virus-Scanned: by amavisd-new X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65745 gmane.emacs.devel:83738 Archived-At: 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/