unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#38587: base64-decode-region breaks encoding
@ 2019-12-12 23:55 Juri Linkov
  2019-12-13  2:52 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 17+ messages in thread
From: Juri Linkov @ 2019-12-12 23:55 UTC (permalink / raw)
  To: 38587

0. emacs -Q
1. insert a non-ASCII char, e.g. ä
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-region
are not reversible, whereas their string counterparts are:

(base64-decode-string (base64-encode-string "ä"))
=> "\344"

(the latter expression returns the right result, but inserts broken text too)





^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2019-12-24 16:13 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-12 23:55 bug#38587: base64-decode-region breaks encoding Juri Linkov
2019-12-13  2:52 ` Lars Ingebrigtsen
2019-12-13  7:12   ` Eli Zaretskii
2019-12-14 23:31   ` Juri Linkov
2019-12-15  8:56     ` Andreas Schwab
2019-12-15 22:40       ` Juri Linkov
2019-12-16 15:58         ` Eli Zaretskii
2019-12-16 21:51           ` Juri Linkov
2019-12-17 16:04             ` Eli Zaretskii
2019-12-17 23:10               ` Juri Linkov
2019-12-24 15:37                 ` Lars Ingebrigtsen
2019-12-24 16:13                   ` Lars Ingebrigtsen
2019-12-16 16:18         ` Andreas Schwab
2019-12-17 16:27         ` Lars Ingebrigtsen
2019-12-15 15:26     ` Eli Zaretskii
2019-12-15 22:41       ` Juri Linkov
2019-12-16  3:28         ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).