Gnus development mailing list
 help / color / mirror / Atom feed
* rfc2231 bug
@ 2006-04-17 23:27 Katsumi Yamaoka
  2006-04-18  0:06 ` Katsumi Yamaoka
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Katsumi Yamaoka @ 2006-04-17 23:27 UTC (permalink / raw)


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  <yamaoka@jpl.org>

	* rfc2231.el (rfc2231-parse-string): Decode encoded value after
	concatenating segments rather than before concatenating them.
	Suggested by ARISAWA Akihiro <ari@mbf.ocn.ne.jp>.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-18 16:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-17 23:27 rfc2231 bug Katsumi Yamaoka
2006-04-18  0:06 ` Katsumi Yamaoka
2006-04-18  8:00 ` Katsumi Yamaoka
2006-04-18 16:28 ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).