From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62889 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: rfc2231 bug Date: Tue, 18 Apr 2006 08:27:29 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp X-Trace: sea.gmane.org 1145316714 31316 80.91.229.2 (17 Apr 2006 23:31:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Apr 2006 23:31:54 +0000 (UTC) Original-X-From: ding-owner+m11416@lists.math.uh.edu Tue Apr 18 01:31:52 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FVdC6-0005f8-PM for ding-account@gmane.org; Tue, 18 Apr 2006 01:31:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FVdBv-0002Ah-00; Mon, 17 Apr 2006 18:31:35 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FVd89-0002AZ-00 for ding@lists.math.uh.edu; Mon, 17 Apr 2006 18:27:41 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FVd89-0006lP-81 for ding@lists.math.uh.edu; Mon, 17 Apr 2006 18:27:41 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FVd88-00017r-00 for ; Tue, 18 Apr 2006 01:27:40 +0200 Original-Received: from [205.234.185.198] (port=41578 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1FVdBq-0008El-16 for ding@gnus.org; Mon, 17 Apr 2006 18:31:30 -0500 Original-To: ding@gnus.org X-Hashcash: 1:20:060417:ding@gnus.org::I4lffCD5XDqh0ySY:0000Iugg X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110005 (No Gnus v0.5) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:7CqXnIsfi1ZSG4K7P6eM6yvAk1w= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.5 (-) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62889 Archived-At: Hi, The most recent changes in rfc2231-parse-string cause a bug. This is the test case: (rfc2231-parse-string (concat "Content-Disposition: attachment;" (rfc2231-encode-string "filename" "一二三四五六七八九零一二三四五六七八九零.pdf"))) => ("content-disposition:attachment" (filename . "一二三四五六七八九零一二三四8^O;<7H,6eNm\e(B.pdf")) It is because each segmented encoded text is decoded before concatenating them. I once fixed this problem as follows: 2004-12-21 Katsumi Yamaoka * rfc2231.el (rfc2231-parse-string): Decode encoded value after concatenating segments rather than before concatenating them. Suggested by ARISAWA Akihiro .