From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: Can't reply to bug mailing list Date: Mon, 12 Jul 2010 01:32:28 -0400 Message-ID: References: <8739vqce84.fsf@gnu.org> <49k4p1luww.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1278912766 7607 80.91.229.12 (12 Jul 2010 05:32:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Jul 2010 05:32:46 +0000 (UTC) Cc: help-debbugs@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 12 07:32:42 2010 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.69) (envelope-from ) id 1OYBdB-0000kn-9w for ged-emacs-devel@m.gmane.org; Mon, 12 Jul 2010 07:32:41 +0200 Original-Received: from localhost ([127.0.0.1]:40216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYBdA-00006O-Md for ged-emacs-devel@m.gmane.org; Mon, 12 Jul 2010 01:32:40 -0400 Original-Received: from [199.232.76.173] (port=56145 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYBd2-00006E-44 for emacs-devel@gnu.org; Mon, 12 Jul 2010 01:32:32 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OYBd0-00072v-A0 for emacs-devel@gnu.org; Mon, 12 Jul 2010 01:32:31 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:35839) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OYBd0-00072r-2Q; Mon, 12 Jul 2010 01:32:30 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OYBcy-0000Hp-F3; Mon, 12 Jul 2010 01:32:28 -0400 Mail-Followup-To: help-debbugs@gnu.org X-Spook: INS ASDIC computer terrorism credit card CISU X-Ran: M/dgbdtLaU9*lMgMnmCG$/]>{uPF|?>yHa>q6;[2Lm)<(kGTN[@/NH$abNcrE3E[|`dq:= X-Hue: white X-Attribution: GM In-Reply-To: <49k4p1luww.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sun\, 11 Jul 2010 14\:45\:19 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:127081 Archived-At: [ cc and followup-to help-debbugs@gnu.org; see start of thread at http://lists.gnu.org/archive/html/emacs-devel/2010-07/msg00463.html ] Here is a minimal Perl file showing what happens. The Debbugs's MIME.pm, with the decode and encode functions, can be viewed at eg http://bzr.donarmstrong.com/debbugs/branches/emacsbugs/Debbugs/MIME.pm (I think that is essentially the same as the version in use.) I guess this is a bug in the encode_rfc1522 function, but I don't really know anything about encoding, so if anyone has any insight it would be appreciated. #!/usr/bin/perl use strict; use warnings; use Debbugs::MIME qw(decode_rfc1522 encode_rfc1522); my $str = 'bojohan@gnu.org (Johan =?utf-8?Q?Bockg=C3=A5rd?=)'; my $dec = decode_rfc1522($str); my $enc = encode_rfc1522($dec); print $enc, "\n"; # -> bojohan@gnu.org (Johan =?UTF-8?Q?Bockg=C3=A5rd)?=