From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: master d57bb0c: Treat passed strings as raw-text when percent-escaping in epg Date: Thu, 12 Dec 2019 16:30:12 +0100 Message-ID: References: <20191212073737.19923.49084@vcs0.savannah.gnu.org> <20191212073738.9C7A3200E3@vcs0.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="146782"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 12 16:30:32 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ifQQA-000bz5-VB for ged-emacs-devel@m.gmane.org; Thu, 12 Dec 2019 16:30:31 +0100 Original-Received: from localhost ([::1]:33120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifQQ9-0002VF-OI for ged-emacs-devel@m.gmane.org; Thu, 12 Dec 2019 10:30:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60384) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifQPz-0002UL-Ba for emacs-devel@gnu.org; Thu, 12 Dec 2019 10:30:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifQPx-0001y5-BK for emacs-devel@gnu.org; Thu, 12 Dec 2019 10:30:19 -0500 Original-Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:55527) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ifQPv-0001v1-Jo for emacs-devel@gnu.org; Thu, 12 Dec 2019 10:30:17 -0500 Original-Received: by mail-wm1-x32d.google.com with SMTP id q9so2820321wmj.5 for ; Thu, 12 Dec 2019 07:30:15 -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=SEHElK0z03PNLYMMWlFr03Az9MAgwI4H5hJ49Gf4XnI=; b=rCxBn7z/BgiA3PWjYOeqF1PM/GEfCpP0Go9rs8KU0EFp/fVJoCP01557EjaO0sVVob o0nI8TanOqhHEo++X9qaf6wjWg6rpIigp06NfdvzkgA5plbv7WaUhxw4K1gvTwX8kQ/b XiSavfjgAwDAEkjeWH5j4zvV4f8Gb7jTK61fYNhNgqlNUYUx7nIt+cvwL06i9CpjNWq0 XMO9wBeDUbNt269dS+uYf9j6Tn51aiJXi1yKdJIX0xuPXRKLu1SweSeIK1DSe9QSUFbY aZoGSUiQ4oPfoMlfjIEexoRMzo9t1bMbgDGQvWLX2c4Lv5gTtfKQJnqgb0m2gcE7MqWA mxwQ== 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=SEHElK0z03PNLYMMWlFr03Az9MAgwI4H5hJ49Gf4XnI=; b=DhKQ8xLu+5TmpwqwVh4cgITisr/Vhe6DI/wQIexm2IC9yJBTFZ2+TZhRTEU3BXnIgo 11D2ZD7tZiXVMvmFltRmlKEJ7/ee0kuzwgzm4X3Yp+VZk3srCDFBn0q0f+CK37oQNMjM zzW/Nxc2ZuEBb8WxsNKwv/NTJdwA09U1tIwvWn/szAi7/s60a2FOFwVXw2g0gBbfkk18 b8ZXzZzD5qXx8Wi1BGR85lovH/ZxsxC6yS+yAa8kOx6yYpIKFfEZCc8ruMEY/JlH4Blv QPp349F2zUYsdIomh9cEn6D9GMK0a4JeeeazS3wYOannzCz70GC3J0UD5w0EADitU4Is 4fuQ== X-Gm-Message-State: APjAAAXIbWqfsfEVlJpB+riGwwnfkf6sY7MXRIXB0KZUvKW7QmQpMgnl NEKJqzc4VUAaLc62BjWRk1DRTUKBmA749g== X-Google-Smtp-Source: APXvYqypCzcYXJa0Ho5CqKMY3mBjCb09X5LdRdBzxenA54HqbDscGKF4q+wElOeWTbkcHvtjiXyCqA== X-Received: by 2002:a1c:f219:: with SMTP id s25mr6932312wmc.114.1576164613457; Thu, 12 Dec 2019 07:30:13 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id v20sm6628304wmj.32.2019.12.12.07.30.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2019 07:30:12 -0800 (PST) In-Reply-To: (Robert Pluim's message of "Thu, 12 Dec 2019 16:19:46 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243321 Archived-At: >>>>> On Thu, 12 Dec 2019 16:19:46 +0100, Robert Pluim s= aid: Robert> No. The string that is passed to epg--decode-percent-escape can Robert> contain non-ASCII characters encoded as UTF-8, plus percent-esc= aped Robert> representations of non-ASCII characters. In order to convert th= ose Robert> percent-escaped characters correctly, the string has to be trea= ted as Robert> a unibyte array of bytes, then re-converted to multibyte by enc= oding Robert> with utf-8 afterwards. Actually, I=CA=BCm wrong here. (encode-coding-string string 'utf-8) will work as well, I=CA=BCd wrongly assumed it would produce a multibyte string. Robert