[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#38587: base64-decode-region breaks encoding
From: |
Lars Ingebrigtsen |
Subject: |
bug#38587: base64-decode-region breaks encoding |
Date: |
Fri, 13 Dec 2019 03:52:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Juri Linkov <juri@linkov.net> writes:
> 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"
Well, that's not really reversible, either.
> (the latter expression returns the right result, but inserts broken text too)
None of these functions work on multibyte text (by design), but I see
the doc strings don't mention this. (The manual does.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#38587: base64-decode-region breaks encoding, Juri Linkov, 2019/12/12
- bug#38587: base64-decode-region breaks encoding,
Lars Ingebrigtsen <=
- bug#38587: base64-decode-region breaks encoding, Eli Zaretskii, 2019/12/13
- bug#38587: base64-decode-region breaks encoding, Juri Linkov, 2019/12/14
- bug#38587: base64-decode-region breaks encoding, Andreas Schwab, 2019/12/15
- bug#38587: base64-decode-region breaks encoding, Juri Linkov, 2019/12/15
- bug#38587: base64-decode-region breaks encoding, Eli Zaretskii, 2019/12/16
- bug#38587: base64-decode-region breaks encoding, Juri Linkov, 2019/12/16
- bug#38587: base64-decode-region breaks encoding, Eli Zaretskii, 2019/12/17
- bug#38587: base64-decode-region breaks encoding, Juri Linkov, 2019/12/17
- bug#38587: base64-decode-region breaks encoding, Lars Ingebrigtsen, 2019/12/24
- bug#38587: base64-decode-region breaks encoding, Lars Ingebrigtsen, 2019/12/24