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
View this message in rfc822 format
Juri Linkov <juri <at> linkov.net> writes:
> But is it still possible to tell base64-decode-region
> about the expected output coding system?
Anything is possible, but it doesn't make sense to complicate a function
like that in this manner. These functions perform a transformation from
one set of octets to a different set of octets, and they have nothing to
do with characters.
We have a bunch of functions in Emacs that work on bytes, and not on
characters. The way to use them is always (assuming you're starting
with something that is text) to use encode-coding-region first, and
(going in the opposite direction), if you want to end up with something
that is text afterwards, you have to call decode-coding-region
afterwards.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 5 years and 148 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.