GNU bug report logs - #38299
A bug while trying to decode a non encode base64

Previous Next

Package: coreutils;

Reported by: vardhaman narasagoudar <vardhamanbn <at> gmail.com>

Date: Wed, 20 Nov 2019 13:25:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Martin Schulte <gnu <at> schrader-schulte.de>
To: 38299 <at> debbugs.gnu.org
Cc: vijay.chaos <at> gmail.com, vardhaman narasagoudar <vardhamanbn <at> gmail.com>
Subject: bug#38299: A bug while trying to decode a non encode base64
Date: Wed, 20 Nov 2019 15:22:44 +0100
Hello Vardhaman!

> 3) Now trying to decode a non-encoded value of 12characters
> [vardhaman <at> oc6085028360 ~]$ echo  'vardhamanbn1' | base64 --decode
> ��݅�����[vardhaman <at> oc6085028360 ~]$ echo $?
> 0

$ echo -n $'\275\252\335\205\251\232\235\271\365' | base64
vardhamanbn1

So, vardhamanbn1 is a valid encoding, but the decoded data is not UTF-8
and thus leads to �.

Best regards,

Martin




This bug report was last modified 5 years and 241 days ago.

Previous Next


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