GNU bug report logs - #39689
26.3; browse-url-mail not supporting RFC6068 (UTF-8-Based Percent-Encoding)

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Vegard Vesterheim <vegard.vesterheim@HIDDEN>; dated Thu, 20 Feb 2020 13:49:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 39689 <at> debbugs.gnu.org:


Received: (at 39689) by debbugs.gnu.org; 14 Mar 2020 12:25:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 14 08:25:59 2020
Received: from localhost ([127.0.0.1]:60703 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jD5rb-0004sV-BY
	for submit <at> debbugs.gnu.org; Sat, 14 Mar 2020 08:25:59 -0400
Received: from quimby.gnus.org ([95.216.78.240]:56716)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1jD5ra-0004sK-MC
 for 39689 <at> debbugs.gnu.org; Sat, 14 Mar 2020 08:25:59 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1jD5rS-0001h9-GA; Sat, 14 Mar 2020 13:25:52 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Robert Pluim <rpluim@HIDDEN>
Subject: Re: bug#39689: 26.3; browse-url-mail not supporting RFC6068
 (UTF-8-Based Percent-Encoding)
References: <1sd0a9tlmh.fsf@HIDDEN> <m2a7545mmg.fsf@HIDDEN>
 <m2pne03w5y.fsf@HIDDEN>
Date: Sat, 14 Mar 2020 13:25:49 +0100
In-Reply-To: <m2pne03w5y.fsf@HIDDEN> (Robert Pluim's message of "Thu, 27
 Feb 2020 16:08:25 +0100")
Message-ID: <87y2s3yvg2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Robert Pluim <rpluim@HIDDEN> writes: > Oh, and there╩╝s
    another version in gnus-util, and one in url, and an > almost compatible
   one in org [1]. The gnus and url ones suffer from > this same issue, although
    they both return different wro [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  0.0 URIBL_BLOCKED          ADMINISTRATOR NOTICE: The query to URIBL was
                             blocked.  See
                             http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
                              for more information.
                             [URIs: ingebrigtsen.no]
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 39689
Cc: 39689 <at> debbugs.gnu.org, Vegard Vesterheim <vegard.vesterheim@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Robert Pluim <rpluim@HIDDEN> writes:

> Oh, and there=CA=BCs another version in gnus-util, and one in url, and an
> almost compatible one in org [1]. The gnus and url ones suffer from
> this same issue, although they both return different wrong results :-)

:-)

> At least the epg, rfc2368, gnus, and the url versions look like they
> can be unified. Not sure where to put them though.

Putting them in either rfc2368 or url.el would make sense.  Hm...
perhaps url-util.el?

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#39689; Package emacs. Full text available.

Message received at 39689 <at> debbugs.gnu.org:


Received: (at 39689) by debbugs.gnu.org; 27 Feb 2020 15:08:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 27 10:08:34 2020
Received: from localhost ([127.0.0.1]:60110 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j7KmA-0006md-6j
	for submit <at> debbugs.gnu.org; Thu, 27 Feb 2020 10:08:34 -0500
Received: from mail-wr1-f51.google.com ([209.85.221.51]:41466)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1j7Km8-0006mP-VH
 for 39689 <at> debbugs.gnu.org; Thu, 27 Feb 2020 10:08:33 -0500
Received: by mail-wr1-f51.google.com with SMTP id v4so3764322wrs.8
 for <39689 <at> debbugs.gnu.org>; Thu, 27 Feb 2020 07:08:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :mime-version:content-transfer-encoding;
 bh=UNcHwk8gL2l+gmt/Mnq6NDRorYIEFhycYcmA/M1AC0M=;
 b=MZp298Sd5Pm7iFbUXabDLfERiZkNj+KWVqxQXE9tDLKQHAgheMLKKZBH9cHhwRZwh3
 WzJE+aqjKHSOFUnORjKVHa2gSjTnvdtRB+m9a6S5BqIVkW+Yd/5KVbqFxmWBrYEGNTY9
 pY2ssnmvfwykYHeq0w5mXlas4Qg+WzR+4y5i5CccRRAQ7mvwUCBCrerwlCiNhoqH9Vsn
 W/Jf9VvAEsRh3V9uwqIvqCr8uFNmuaRRaMtFmy4vUwMBglpjUjnVopdeqAzXeSCqa+bX
 CRnztlzhuup9352T9/k9ZID/LpuNGRx9Vv++mKrme4ESRvCfx/cX9u8FoBto5sCZgyLU
 6w+Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:mime-version:content-transfer-encoding;
 bh=UNcHwk8gL2l+gmt/Mnq6NDRorYIEFhycYcmA/M1AC0M=;
 b=Sp4ltssNaZ99JHed+xIgD+kg5zutTh+FrOH5Ub5+NOQH5Y5wTZDONOHIrFNgKfjbvS
 ADsuA19gV6MDucqMH2UcRglVIZtOx2saqx/xjNcadLjyU7Gs7XflJWEpQVKVOh/4uoeO
 peslkjbwIyijWRatVpZctEXqvGwkU565P6ZcfBnSIZ45LhZdCC6MZbaWYQ8nfjlyoMI+
 ERCaqTjZUt5ih8fGoiPFV6BaDgg7OKfcdUlrdi1NadaY4gkLBQ6zWjEBSQmBuqHdEuXS
 8IaeS0EK8esfVNkKInIKey7BEMf98rcLdaOXx/yrjnJ8M39VgSvCjny43yiQlnXQQsEo
 /Y2w==
X-Gm-Message-State: APjAAAUTCFLG11HQTjNVUBZ7BVkWMb9dGnngNMIy4ZM5laOou+qBksv4
 +c1TBstwi0rXfRVbIZBu/5c=
X-Google-Smtp-Source: APXvYqzDrVVA+xyvX9Xvt0RK0z1rr8DR/HGzzRq5lWiV+XYOTuSQpeG/McIS6XPQ9T3BSfQGFrAMbw==
X-Received: by 2002:adf:a312:: with SMTP id c18mr5568775wrb.77.1582816106982; 
 Thu, 27 Feb 2020 07:08:26 -0800 (PST)
Received: from rpluim-mac ([149.5.228.1])
 by smtp.gmail.com with ESMTPSA id n3sm8334745wmc.27.2020.02.27.07.08.25
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 27 Feb 2020 07:08:26 -0800 (PST)
From: Robert Pluim <rpluim@HIDDEN>
To: Vegard Vesterheim <vegard.vesterheim@HIDDEN>
Subject: Re: bug#39689: 26.3; browse-url-mail not supporting RFC6068
 (UTF-8-Based Percent-Encoding)
References: <1sd0a9tlmh.fsf@HIDDEN> <m2a7545mmg.fsf@HIDDEN>
Date: Thu, 27 Feb 2020 16:08:25 +0100
In-Reply-To: <m2a7545mmg.fsf@HIDDEN> (Robert Pluim's message of "Thu, 27
 Feb 2020 11:51:35 +0100")
Message-ID: <m2pne03w5y.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 39689
Cc: 39689 <at> debbugs.gnu.org, larsi@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Thu, 27 Feb 2020 11:51:35 +0100, Robert Pluim <rpluim@HIDDEN> s=
aid:

>>>>> On Thu, 20 Feb 2020 14:48:54 +0100, Vegard Vesterheim via "Bug
    Robert> reports for GNU Emacs, the Swiss army knife of text editors"
    Robert> <bug-gnu-emacs@HIDDEN> said:

    Vegard> Emacs does not seem to correctly handle UTF-8-Based Percent-Enc=
oding as
    Vegard> illustrated in Chapter 6.2 from RFC6068.

    Vegard> The command=20
    Vegard> emacs -Q -l browse-url -eval '(browse-url-mail "mailto:user@exa=
mple.org?subject=3Dcaf%C3%A9&body=3Dcaf%C3%A9")'

    Vegard> should result in a message buffer with the string "caf=C3=A9" i=
nsterted into the
    Vegard> body part of the message. Instead the string "caf=C3=83=C2=A9" =
is inserted.

    Robert> Yes, the assumption in rfc2368-unhexify-string is that percent
    Robert> escaping is being done of ASCII characters.

    Robert> epg--decode-percent-escape-as-utf-8 in epg.el does the
    Robert> right thing, it could be renamed and moved. I think rfc2047 dec=
oding
    Robert> needs doing on the result as well. Lars, should I just stick th=
ese in
    Robert> rfc2368.el but named something like rfc6068-unhexify-string and
    Robert> rfc6068-decode-2047-string or something?

Oh, and there=CA=BCs another version in gnus-util, and one in url, and an
almost compatible one in org [1]. The gnus and url ones suffer from
this same issue, although they both return different wrong results :-)

At least the epg, rfc2368, gnus, and the url versions look like they
can be unified. Not sure where to put them though.

Footnotes:
[1]  It supports % representation of the UTF-8 encoding of chars, but
     also of the unicode code point of chars, so eg %E1 gets turned
     into =C3=A1. I=CA=BCm sure there=CA=BCs some historical reason for tha=
t.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#39689; Package emacs. Full text available.

Message received at 39689 <at> debbugs.gnu.org:


Received: (at 39689) by debbugs.gnu.org; 27 Feb 2020 10:51:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 27 05:51:47 2020
Received: from localhost ([127.0.0.1]:58758 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j7Gle-0001KW-Ox
	for submit <at> debbugs.gnu.org; Thu, 27 Feb 2020 05:51:46 -0500
Received: from mail-wm1-f44.google.com ([209.85.128.44]:55249)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1j7Glb-0001KG-CC
 for 39689 <at> debbugs.gnu.org; Thu, 27 Feb 2020 05:51:44 -0500
Received: by mail-wm1-f44.google.com with SMTP id z12so2943259wmi.4
 for <39689 <at> debbugs.gnu.org>; Thu, 27 Feb 2020 02:51:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :mime-version:content-transfer-encoding;
 bh=ZJ4gf6VJCWGPi7/Nl/QNUV4tNYo+ZabPMeUpcN3UyVE=;
 b=LMypHs+WWaDCcepHS6L2jawE1ufOjA8j+CZiZc17CSSS8LiXiPDHQK+jLPQq+nP0Br
 yBWQ61NaaCrW4CnFUB4xKxw7Mm+a78F4exgb+Mw+3W9ZCE6vcvUXh3EMq9nMBcPAD9jv
 HhNfLkkI9X6Bbd+WNcVV1gOmiilp+T7ap5gifUlT9MC9G0Sgw4NdXDtnbiZDy/BkymH7
 DMLisXzO99YtvGobHU23p3O7ZBbHt7BcuYKmybQ2HIMaDwFeJJydUHLzPVfXLre0fQEE
 nZLpC3FMx3sSD1yDov4WISu6Zky66GisVWcUJpEKw+Ez9T+3jBDF08MLlTrFtGYNFZsk
 E20w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:mime-version:content-transfer-encoding;
 bh=ZJ4gf6VJCWGPi7/Nl/QNUV4tNYo+ZabPMeUpcN3UyVE=;
 b=I3xDYgBfAH483fyP75QwPD8tsCMe5VSQaK1OPp/foeI0PagYbiJ36ya7KpC5ihoZUV
 N3X2NxSVC/By9mvE3DzbYfNoXBP7YOiE7p1tv98ItX2yLAnj3Td4H4ZlV1qaMCaVmVKb
 yls/qJ6BCa1bz6HIVlKkAHNLk4NnAKcFn0UolJReqxOEKMOZSMsGSb2Xs78wHRNKE88R
 pnVQYMHhLIgDEfhwgiQEeB23Rp2GtdoSUNkcSMTwKtt3NfLwo0GR1ICbxREhUlIlvfEw
 qZisJF6YRdnN3AbSHRUj5QxP50OCBA3mlkYhvYgVyfeTx88VqWEH5EU7ix0gfm1vZqW3
 Xn2g==
X-Gm-Message-State: APjAAAUi/Ka0dENOwCHPM8iyVyNzrPy4mdXKR4H6TPKXrOWIoccZywUk
 2qhJiUH3iKJ+DhOeTJXGJLA=
X-Google-Smtp-Source: APXvYqzsTNIOG8NpiEY/vtkEHaK5gJx8Pmxh19Zq8TizBaW6Jo6ym4Sk9EFihPyDfkNZVsuBdubBVQ==
X-Received: by 2002:a05:600c:2255:: with SMTP id
 a21mr1707558wmm.79.1582800697336; 
 Thu, 27 Feb 2020 02:51:37 -0800 (PST)
Received: from rpluim-mac ([149.5.228.1])
 by smtp.gmail.com with ESMTPSA id m21sm7051882wmi.27.2020.02.27.02.51.36
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 27 Feb 2020 02:51:36 -0800 (PST)
From: Robert Pluim <rpluim@HIDDEN>
To: Vegard Vesterheim <vegard.vesterheim@HIDDEN>
Subject: Re: bug#39689: 26.3; browse-url-mail not supporting RFC6068
 (UTF-8-Based Percent-Encoding)
References: <1sd0a9tlmh.fsf@HIDDEN>
Date: Thu, 27 Feb 2020 11:51:35 +0100
In-Reply-To: <1sd0a9tlmh.fsf@HIDDEN> (Vegard Vesterheim via's message of
 "Thu, 20 Feb 2020 14:48:54 +0100")
Message-ID: <m2a7545mmg.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 39689
Cc: 39689 <at> debbugs.gnu.org, larsi@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Thu, 20 Feb 2020 14:48:54 +0100, Vegard Vesterheim via "Bug report=
s for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN=
rg> said:

    Vegard> Emacs does not seem to correctly handle UTF-8-Based Percent-Enc=
oding as
    Vegard> illustrated in Chapter 6.2 from RFC6068.

    Vegard> The command=20
    Vegard>    emacs -Q -l browse-url -eval '(browse-url-mail "mailto:user@=
example.org?subject=3Dcaf%C3%A9&body=3Dcaf%C3%A9")'

    Vegard> should result in a message buffer with the string "caf=C3=A9" i=
nsterted into the
    Vegard> body part of the message. Instead the string "caf=C3=83=C2=A9" =
is inserted.

Yes, the assumption in rfc2368-unhexify-string is that percent
escaping is being done of ASCII characters.

epg--decode-percent-escape-as-utf-8 in epg.el does the
right thing, it could be renamed and moved. I think rfc2047 decoding
needs doing on the result as well. Lars, should I just stick these in
rfc2368.el but named something like rfc6068-unhexify-string and
rfc6068-decode-2047-string or something?

Robert




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#39689; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Feb 2020 13:48:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 20 08:48:28 2020
Received: from localhost ([127.0.0.1]:44076 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j4mBn-0000XK-PO
	for submit <at> debbugs.gnu.org; Thu, 20 Feb 2020 08:48:28 -0500
Received: from lists.gnu.org ([209.51.188.17]:51149)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vegard.vesterheim@HIDDEN>) id 1j4mBl-0000XC-S4
 for submit <at> debbugs.gnu.org; Thu, 20 Feb 2020 08:48:26 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:35197)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <vegard.vesterheim@HIDDEN>) id 1j4mBk-0003LY-9e
 for bug-gnu-emacs@HIDDEN; Thu, 20 Feb 2020 08:48:25 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: ***
X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50, MSGID_FROM_MTA_HEADER,
 RCVD_IN_DNSWL_NONE,RECEIVED_FROM_WINDOWS_HOST,URIBL_BLOCKED
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <vegard.vesterheim@HIDDEN>) id 1j4mBh-0008WK-V8
 for bug-gnu-emacs@HIDDEN; Thu, 20 Feb 2020 08:48:22 -0500
Received: from mail-eopbgr30124.outbound.protection.outlook.com
 ([40.107.3.124]:36326 helo=EUR03-AM5-obe.outbound.protection.outlook.com)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <vegard.vesterheim@HIDDEN>)
 id 1j4mBh-0008J4-Da
 for bug-gnu-emacs@HIDDEN; Thu, 20 Feb 2020 08:48:21 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=gJAdN/pX6wdSVg6xo9xcKnKSl62htjbDB8uESjXGnnNwsmmK5u/lBIgAU2FGvpYBk7rV6GAucGmbUmep0P5mRIJWwSSkdxPBZA5IjN6FEKeBkNIRub8VTY9fUGtUYrlSsnqt8fm28EUi6vbX1c+nJkn5UQkxQYZWUT0DaH78eP+sNFEV7sJr15v4CpE6ZMkbU7rGGO6K3OxPE1wP6alyoT8hQr2uMBznnx4MyO78KUnCvznJ3JUeLIlu2pXDu57fvdoxrvFh3yRDchu8tvxDxYz41LuCRMQJnaazzolIjdambKtPdG8TdfDoGW8EincBhK9QWBMxqqREawY3ei3HcQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=PPmAIdodWkXsYoC001XnOfq7xHtRAnREbV/AsLqJw3s=;
 b=oA/Oy/b5sA8izwOtRVMzAk3adHh7ITmXu0T+IKa84pRA6kIfnK6o+CzshxFZYFkG4n6YdduVNMc2GBg0+W2Fj4D786BELrzgpVvHWsuq8pvRVaXuo2AvX/KYqlLVtLuRCLfTPOQEmHQgKsOu6iPew5iihJqBibOiHcB/Z/OpLHEkuOCy/SklYS3vKP6R+oXIq8/CitYKdG4aOmu4sWWgIw5cDd4Rq1lCwcpRzqWtl575I5P/Sx/tG9TqHdxSJlEblv63HtuSVl31nrR9bwQCfkHaNl104ZMf52s6cxQOi+zMIx1RXWmrwa36bY6GtDSeFgY+hXYkzhftmmpZ43Bk3Q==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=uninett.no; dmarc=pass action=none header.from=uninett.no;
 dkim=pass header.d=uninett.no; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uninett.no;
 s=selector2;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=PPmAIdodWkXsYoC001XnOfq7xHtRAnREbV/AsLqJw3s=;
 b=qSjzXVtK5b4x3FrByzRaZYr4mvp3ibSPSQgKdDN/ZoVCvahJ6IR6gtGKNcdai+aN7rb10hjYlue3aQ0ykppZiRu1H+uri7CWnRJ3g0Y9d9mt4gdHzq7FbwZwxo9E9hKLWtlrFqcWmqrdFECqRnrxd0qD9V8rIjKypZARDtkXeRs=
Authentication-Results: spf=none (sender IP is )
 smtp.mailfrom=vegard.vesterheim@HIDDEN; 
Received: from DB8PR08MB5371.eurprd08.prod.outlook.com (52.133.240.199) by
 DB8PR08MB5497.eurprd08.prod.outlook.com (52.133.242.78) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.2729.22; Thu, 20 Feb 2020 13:48:12 +0000
Received: from DB8PR08MB5371.eurprd08.prod.outlook.com
 ([fe80::90df:7291:d61:4354]) by DB8PR08MB5371.eurprd08.prod.outlook.com
 ([fe80::90df:7291:d61:4354%5]) with mapi id 15.20.2729.033; Thu, 20 Feb 2020
 13:48:12 +0000
From: Vegard Vesterheim <vegard.vesterheim@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.3;
 browse-url-mail not supporting RFC6068 (UTF-8-Based Percent-Encoding)
Organization: UNINETT AS
Date: Thu, 20 Feb 2020 14:48:54 +0100
Message-ID: <1sd0a9tlmh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ClientProxiedBy: HE1P195CA0020.EURP195.PROD.OUTLOOK.COM (2603:10a6:3:fd::30)
 To DB8PR08MB5371.eurprd08.prod.outlook.com
 (2603:10a6:10:114::7)
MIME-Version: 1.0
Received: from voll (2001:700:1:0:158:38:62:13) by
 HE1P195CA0020.EURP195.PROD.OUTLOOK.COM (2603:10a6:3:fd::30) with Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.2750.18 via Frontend Transport; Thu, 20 Feb 2020 13:48:11 +0000
X-Originating-IP: [2001:700:1:0:158:38:62:13]
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 26d8cbbb-2f2d-4a49-dd26-08d7b60b86fe
X-MS-TrafficTypeDiagnostic: DB8PR08MB5497:
X-Microsoft-Antispam-PRVS: <DB8PR08MB549754D3AB56E1E6EB44708F8B130@HIDDEN>
X-MS-Oob-TLC-OOBClassifiers: OLM:7219;
X-Forefront-PRVS: 031996B7EF
X-Forefront-Antispam-Report: SFV:NSPM;
 SFS:(10019020)(4636009)(39840400004)(346002)(366004)(136003)(376002)(396003)(189003)(199004)(8676002)(81166006)(81156014)(8936002)(6666004)(66476007)(66556008)(36756003)(44832011)(2616005)(2906002)(66946007)(6486002)(508600001)(5660300002)(52116002)(6916009)(16526019)(36916002)(6496006)(86362001)(786003)(316002)(186003);
 DIR:OUT; SFP:1102; SCL:1; SRVR:DB8PR08MB5497;
 H:DB8PR08MB5371.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en;
 PTR:InfoNoRecords; MX:1; A:1; 
Received-SPF: None (protection.outlook.com: uninett.no does not designate
 permitted sender hosts)
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 22mDITXM6VB1pGVEe+p2sliPTr5rDvJZ7PkHhbuhukk+WEoltpl5/S2Jk23k06/6BfnOMdgR+VCSnebAbJOsOPEFPQuaoyz9IgezHa3vpOw6U10/iPpI9k8eyMAY6uE+8p/rngth3CxpFKKG2r34hJ3hlCPvbE+J4IHdwlDiuegErIwvcu8OZjhWD4FWC+VDGf631raVHN1uWHisT5jBtEhHXfHU88dnL/9LSFmYhjCOn2y4ucNg/GnW+7vE5xEo1lhqOQfFaSjHcGThQPJ4oNA4gysR367DZhWAAi0Caegt8lt5oXW4zGx5w8Cs+SeUDT1V3jOTT8W6GW4t8I47jtkbalHYk3OIeTEsVdYsN91LakQk5C2+6jic2SNXUNSHh6NiZcutQp3DLDLy+WrmVKdnQasaiF2hABhEMfL2VqdSA966DiIGbDsH7hFkFvtp
X-MS-Exchange-AntiSpam-MessageData: R20va9UenN+t2hhPB2WRwUSqzyOl+YN31MuQUCNAlN6ABVfP45jFDjbUSJM8qo88W0T+A6ygmpHXh8BgxpghmgPU5181FbQvY7ibrKqdhfsWqNy+nLhGG0kWfScCWdKAfiJIIqLgToUxUU9jZN7OHRavOKUNa1TevROKYxvV4NQ6Dm3xiMDga99+zNjIvciX
X-OriginatorOrg: uninett.no
X-MS-Exchange-CrossTenant-Network-Message-Id: 26d8cbbb-2f2d-4a49-dd26-08d7b60b86fe
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2020 13:48:12.2746 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 68763e3d-4615-4222-988f-90ba13e351e9
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: wCu9ZJxLJvzy6muoBqdA/9XN4K+1KbGpyc2AVoc9Cr7P+JFBaP8NP+ca0pmoVkPouGZkAa6EKmmE4r/h8e8z2Q==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5497
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy]
X-Received-From: 40.107.3.124
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

Emacs does not seem to correctly handle UTF-8-Based Percent-Encoding as
illustrated in Chapter 6.2 from RFC6068.

The command=20
   emacs -Q -l browse-url -eval '(browse-url-mail "mailto:user@HIDDEN?=
subject=3Dcaf%C3%A9&body=3Dcaf%C3%A9")'

should result in a message buffer with the string "caf=C3=A9" insterted int=
o the
body part of the message. Instead the string "caf=C3=83=C2=A9" is inserted.

I am running Ubuntu 18.04.3 LTS.

M-x emacs-version returns:
  "GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2=
019-09-16"=20

$ locale -a | grep -i utf
C.UTF-8
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IL.utf8
en_IN.utf8
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM.utf8
en_ZW.utf8
nb_NO.utf8

$ env | grep LC
LC_MEASUREMENT=3Den_US.UTF-8
LC_PAPER=3Den_US.UTF-8
LC_MONETARY=3Den_US.UTF-8
LC_NAME=3Den_US.UTF-8
LC_ADDRESS=3Den_US.UTF-8
LC_NUMERIC=3Den_US.UTF-8
LC_TELEPHONE=3Den_US.UTF-8
LC_IDENTIFICATION=3Den_US.UTF-8
LC_TIME=3Dnb_NO.utf8

$ env | grep LANG
LANG=3Den_US.UTF-8
GDM_LANG=3Den
NLS_LANG=3DNORWEGIAN_NORWAY.WE8ISO8859P1
LANGUAGE=3Den


--

Vennlig hilsen/Best regards
Vegard Vesterheim
Senior Software engineer
+47 48 11 98 98
vegard.vesterheim@HIDDEN




Acknowledgement sent to Vegard Vesterheim <vegard.vesterheim@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#39689; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 14 Mar 2020 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.