From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.50; utf7-decode failed with non latin-1 charactor Date: Mon, 05 Nov 2007 16:02:20 +0900 Message-ID: References: <87k5p1ho29.wl%topia@clovery.jp> <472B1AD5.3090006@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1194246229 20334 80.91.229.12 (5 Nov 2007 07:03:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Nov 2007 07:03:49 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, topia@clovery.jp To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 05 08:03:52 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iovzx-0001E4-Lj for ged-emacs-devel@m.gmane.org; Mon, 05 Nov 2007 08:03:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iovzm-0005AT-C6 for ged-emacs-devel@m.gmane.org; Mon, 05 Nov 2007 02:03:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iovzj-00058a-BF for emacs-devel@gnu.org; Mon, 05 Nov 2007 02:03:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iovzh-000571-UB for emacs-devel@gnu.org; Mon, 05 Nov 2007 02:03:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iovzh-00056y-Kj for emacs-devel@gnu.org; Mon, 05 Nov 2007 02:03:33 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iovzg-0004pP-0B for emacs-devel@gnu.org; Mon, 05 Nov 2007 02:03:33 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iovze-0006RA-Hl for emacs-pretest-bug@gnu.org; Mon, 05 Nov 2007 02:03:30 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IovzQ-0004or-8X for emacs-pretest-bug@gnu.org; Mon, 05 Nov 2007 02:03:30 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iovyv-0004kV-9j; Mon, 05 Nov 2007 02:02:54 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id lA572VmJ021423; Mon, 5 Nov 2007 16:02:31 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id lA572Vb4011569; Mon, 5 Nov 2007 16:02:31 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id lA572Kfw002532; Mon, 5 Nov 2007 16:02:20 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.67) (envelope-from ) id 1IovyW-0001nS-4a; Mon, 05 Nov 2007 16:02:20 +0900 In-reply-to: <472B1AD5.3090006@gnu.org> (message from Jason Rumney on Fri, 02 Nov 2007 12:40:53 +0000) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:82549 gmane.emacs.pretest.bugs:20242 Archived-At: In article <472B1AD5.3090006@gnu.org>, Jason Rumney writes: [...] > There appear to be two different implementations of utf-7 in Emacs, one > in lisp/international/utf-7.el, and one in lisp/gnus/utf7.el > The former seems to work for decoding, but always returns nil on > encoding without changing the buffer contents (the correctly encoded > text is in a buffer called " *temp*" however). [...] > Probably lisp/international/utf-7.el should be fixed, and the Gnus one > dropped. 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. 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. Could someone do the latter change? --- Kenichi Handa handa@ni.aist.go.jp