GNU bug report logs -
#38587
base64-decode-region breaks encoding
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Fri, 13 Dec 2019 00:04:01 UTC
Severity: normal
Tags: wontfix
Fixed in version 27.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 38587 <at> debbugs.gnu.org (full text, mbox):
On Dez 15 2019, Juri Linkov wrote:
> Maybe an additional CODING arg for base64-decode-region?
BASE64 is defined on a sequence of bytes. It doesn't make sense to
apply it to characters.
The input of base64-encode-region needs to be encoded into bytes and the
output of base64-decode-region needs to be decoded into characters. If
you do that, you get a full reversible operation.
> Or it would be enough to use the coding system of the
> output buffer?
The coding system of the output buffer has nothing to do with the coding
of the data produced by base64-decode-region, just like
process-coding-system is independent from the coding system of the
process buffer.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
This bug report was last modified 5 years and 147 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.