GNU bug report logs - #38587
base64-decode-region breaks encoding

Previous Next

Package: emacs;

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 #51 received at control <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: larsi <at> gnus.org, schwab <at> linux-m68k.org, 38587 <at> debbugs.gnu.org
Subject: Re: bug#38587: base64-decode-region breaks encoding
Date: Wed, 18 Dec 2019 01:10:06 +0200
tags 38587 wontfix
close 38587 27.0.50
quit

> decode-coding-region should be what you want.  It decodes raw bytes
> (a.k.a. "eight-bit charset") into characters.

Thanks, I'm using this advice.

(advice-add 'base64-decode-region :after
            (lambda (beg end &optional _base64url)
              (decode-coding-region beg end buffer-file-coding-system))
            '((name . base64-decode-region-with-buffer-coding)))

So I'm closing this.  Not sure what could be added to documentation.




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.