From P.Dalgaard at biostat.ku.dk  Mon May 26 10:36:06 2008
From: P.Dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Mon, 26 May 2008 10:36:06 +0200
Subject: [Rd] Double HTML encoding in R Bug Tracking
	Submission	form	(PR#11517)
In-Reply-To: <483A5D45.7030801@biostat.ku.dk>
References: <20080526011010.0B6F6282EF48@mail.pubhealth.ku.dk>
	<483A5D45.7030801@biostat.ku.dk>
Message-ID: <483A7676.2010900@biostat.ku.dk>

Peter Dalgaard wrote:
> mwtoews at sfu.ca wrote:
>> The "New Bug Report" form available from http://bugs.r-project.org/
>> appears to double encode the HTML of the "body" text area of the form.
>>
>> This behaviour can be seen in submission ID # 11515, where (as an
>> example) "??" is converted to "&#916;" in the browser view or
>> "&amp;#916;" in the HTML source code. Conversion to "&#916;" in the
>> HTML source is sufficient to render "??" in the browser output.
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>   
> Well, the repository handles emails, and the report form sends mail to
> the bug repository.
>
> The report form sends HTML codes without any indication that it is
> doing so, so the codes get rendered in the browser view. This latter
> part is actually correct behaviour since the alternative is to mangle
> all ampersands. So the main bug is that the report form is not
> mail-encoding the contents if non-ASCII.
>
> *However*, even with properly encoded mails, the browser view will not
> interpret the encoding, which is particularly annoying with
> quoted-printable (which uses the equal sign as an escape character and
> changes = to =3D). Also, see what happens with my signature which has
> a UTF-8 character inside.
>
> All in all, the whole mess indicates that the bug repository software
> is dying. It has long since been abandoned by its original author and
> it makes no sense for the R Core Team to make major changes to its
> internals. We've been wanting to move to something more mainstream for
> quite a while, but it takes some effort to find out how to move all
> the old pending and resolved reports across.
>
(Not to mention the fact that, apparently, Thunderbird auto-wraps
outgoing mail on SUSE and not on Fedora... *Sigh*.  Sorry about that.
You'd think that people could get this sort of stuff working after one
score and seventeen years of email...)

-- 
   O__  ---- Peter Dalgaard             ?ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907



[Rd] Double HTML encoding in R Bug Tracking Submission form (PR#11517)
Peter Dalgaard