From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#38587: base64-decode-region breaks encoding Date: Fri, 13 Dec 2019 01:55:56 +0200 Organization: LINKOV.NET Message-ID: <87blsdhzeb.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="162430"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) To: 38587@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 13 01:04:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ifYRL-000g74-22 for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Dec 2019 01:04:15 +0100 Original-Received: from localhost ([::1]:38958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifYRJ-0001wA-Kh for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Dec 2019 19:04:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46839) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifYR9-0001ts-C3 for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2019 19:04:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifYR8-0005iR-DD for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2019 19:04:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55093) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ifYR8-0005hc-72 for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2019 19:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ifYR8-0005Zy-1m for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2019 19:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Dec 2019 00:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38587 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157619539821304 (code B ref -1); Fri, 13 Dec 2019 00:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Dec 2019 00:03:18 +0000 Original-Received: from localhost ([127.0.0.1]:32830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ifYQP-0005XX-P0 for submit@debbugs.gnu.org; Thu, 12 Dec 2019 19:03:17 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:49295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ifYQO-0005XQ-J4 for submit@debbugs.gnu.org; Thu, 12 Dec 2019 19:03:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38136) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifYQN-0001Ag-EN for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2019 19:03:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifYQM-0004Kb-Bp for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2019 19:03:15 -0500 Original-Received: from aye.elm.relay.mailchannels.net ([23.83.212.6]:3253) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ifYQL-0004Gi-OY for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2019 19:03:14 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id E6D04501771 for ; Fri, 13 Dec 2019 00:03:11 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a65.g.dreamhost.com (100-96-60-111.trex.outbound.svc.cluster.local [100.96.60.111]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 7CCAD5013CF for ; Fri, 13 Dec 2019 00:03:11 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a65.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Fri, 13 Dec 2019 00:03:11 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Trouble-Well-Made: 2668f2d740336020_1576195391722_3466530235 X-MC-Loop-Signature: 1576195391721:2376753201 X-MC-Ingress-Time: 1576195391721 Original-Received: from pdx1-sub0-mail-a65.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a65.g.dreamhost.com (Postfix) with ESMTP id D06E77F21C for ; Thu, 12 Dec 2019 16:03:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=linkov.net; bh=JYejYeFdwKS6ejWl9Sv 05RP1tcE=; b=FtGAHFyitnhvdau+je7H34RwelhslM171Hl37V+OaAR6+DS1xCL 1PtS54eLQmlLA9pSYXuZRJXDUd0NvESM3u3Z3QT+hRH0ls/5pcssXy6a9tx36zJa 7ezwfWZTlwtUP/BPflXPYkZHDsYVs/ZNcHfNaBPRdEj893GyjaWJyL6U= Original-Received: from mail.jurta.org (m91-129-96-42.cust.tele2.ee [91.129.96.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a65.g.dreamhost.com (Postfix) with ESMTPSA id 140737F220 for ; Thu, 12 Dec 2019 16:03:05 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a65 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrudelkedgudekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuohffkfgfgggtgfesthekredttderudenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdeliedrgedvnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledrleeirdegvddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173235 Archived-At: 0. emacs -Q 1. insert a non-ASCII char, e.g. =E4 2. select the region around the char 3. M-x base64-encode-region 4. select the region around the encoded text 5. M-x base64-decode-region results in a broken text. IOW, base64-encode-region and base64-decode-re= gion are not reversible, whereas their string counterparts are: (base64-decode-string (base64-encode-string "=E4")) =3D> "\344" (the latter expression returns the right result, but inserts broken text = too)