GNU bug report logs - #26372
Base64 inserts carriage return

Previous Next

Package: coreutils;

Reported by: Goulven Guillard <lecotegougdelaforce <at> free.fr>

Date: Wed, 5 Apr 2017 15:27:02 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Goulven Guillard <lecotegougdelaforce <at> free.fr>
To: bug-coreutils <at> gnu.org
Subject: Base64 inserts carriage return
Date: Wed, 5 Apr 2017 12:39:43 +0200
Hi,

It seems `base64` inserts a carriage return ("Cg==") when encoding a 
string :

$ echo foobar|base64
Zm9vYmFyCg==

If this is the desired behaviour, it should at least be documented since 
it is not obvious (and BTW different from e.g. PHP base64_encode).

Confirmed with coreutils 8.23-4 under Debian and coreutils 2.24-8.fc23 
under Fedora.

Regards,

Goulven Guillard.





This bug report was last modified 8 years and 107 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.