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 17:39:24 +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="185540"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Stefan Monnier , emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 12 17:41:13 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 1ifRWb-000m3w-Nz for ged-emacs-devel@m.gmane.org; Thu, 12 Dec 2019 17:41:13 +0100 Original-Received: from localhost ([::1]:34078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifRWU-00073w-Js for ged-emacs-devel@m.gmane.org; Thu, 12 Dec 2019 11:41:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42771) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifRUv-0004wF-AV for emacs-devel@gnu.org; Thu, 12 Dec 2019 11:39:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifRUu-0000yo-1W for emacs-devel@gnu.org; Thu, 12 Dec 2019 11:39:28 -0500 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:33675) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ifRUt-0000wE-OE for emacs-devel@gnu.org; Thu, 12 Dec 2019 11:39:27 -0500 Original-Received: by mail-wr1-x42f.google.com with SMTP id b6so3498351wrq.0 for ; Thu, 12 Dec 2019 08:39:27 -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=Myco6eNQwRwxOfFY85+CC5Pi/mdMUI42WQivyCjCP0Q=; b=j43nRBM7qWarlqhw7UvUiFdW4M3Ii1jebX2f9hPm0fMUOTJV6MSzL+sfBRkG5Td893 ewrnQyv6qQ1/N81hOtIOthorU3FE3tv5nqa3YZPKqvN2s95MtQxhKgEuEoweTUrkEoky VwBmqoY56rt6CCxfJkvQx4e4FtQTEU+7rZwRzeAGi4upSfiFYTrXkgMBgZ3rzOr2Hz8V 8+5ij148qLYvgh337WN5EwChgHftkBp80pS7fYnbEWd0iWfWW84l28yOqVlOWGxUUKqV Nw8Ss3kFZ/0fheshRLfyUZEIy3aGmI252ktAsO9VQGHOCodXAxlmrXyhF3VEENKPg9Mr 6Cag== 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=Myco6eNQwRwxOfFY85+CC5Pi/mdMUI42WQivyCjCP0Q=; b=mBoXwU0gIWTACyocbMGOpJb5dCsDAaa2oS/YoS9+JpBRRDJZTXls/x1dRlw38ZuezX jCDvNwiL0L3AWExephfLBSGhLb8qjdwfxZQP7WZMBdYQ/px+mNiz3cbnneRRinCgxgQl lXk3cCQorSg6oL6VYhxQrp28vRqoGN3L/FaPuCzlbG9cnK2la7SXtHkzjbcc5abbpK7Z T06dWiXbn1bUBuZfaPFMf+f9vc1jlaiPSk+eYHRoaIaUWeY8DYg8eSb6RFvHNmbPN0kb dVcj9n/nXrSWJgL8oXI/5gTDCOgQCCxrpauAM+iHkEO2E+p7l8JKwNGzWDhZewFjsSah tK9Q== X-Gm-Message-State: APjAAAXZSaEdFepQiQ9RYjGjlhfXF6qxC6hNQfWmSkLchrOuKYFg4lh7 9gbCqorTBPAdr4XHFZabG9PzUq87jiiXmQ== X-Google-Smtp-Source: APXvYqx1PNWVKMe1ouzVMJdOyq7P5XfvprKO8enf9TLoq6tYxkL8Hq9lvcNBCXaeBiC49ZVJgoV73Q== X-Received: by 2002:adf:d4ca:: with SMTP id w10mr6966663wrk.53.1576168765804; Thu, 12 Dec 2019 08:39:25 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id n3sm6923748wmc.27.2019.12.12.08.39.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2019 08:39:25 -0800 (PST) In-Reply-To: (Andreas Schwab's message of "Thu, 12 Dec 2019 17:33:36 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42f 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:243330 Archived-At: >>>>> On Thu, 12 Dec 2019 17:33:36 +0100, Andreas Schwab s= aid: Andreas> On Dez 12 2019, Robert Pluim wrote: >> epg--decode-percent-escape replace the escapes with the corresponding >> characters, so now we have >>=20 >> "=C3=BC=C3=83=C2=A9" Andreas> That is were it went wrong. You need to decode the sequence b= efore Andreas> splicing it into the string. Mixing encoded and decoded data = is not Andreas> going to do the right thing. I didn=CA=BCt write the code in question. Whoever did understandably didn= =CA=BCt want to write code for converting variable length percent-escapes into the corresponding characters when emacs has decode-coding-string already. Robert