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


View this message in rfc822 format

From: Goulven Guillard <lecotegougdelaforce <at> free.fr>
To: 26372 <at> debbugs.gnu.org
Subject: bug#26372: Base64 inserts newline [was "Base64 inserts carriage return"]
Date: Wed, 5 Apr 2017 13:35:29 +0200
Le 05/04/2017 à 12:39, Goulven Guillard a écrit :
> It seems `base64` inserts a carriage return ("Cg==") when encoding a
> string :
>
> $ echo foobar|base64
> Zm9vYmFyCg==

I just figured it was not a carriage return ("\r") but a simple newline 
("\n").  I was misleaded because for some reason my PHP form translates 
"\n" into "\r\n" during the POST submission.

Anyway, it doesn't change much the issue.

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.