Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!not-for-mail From: Dennis Williamson Newsgroups: gnu.bash.bug Subject: Re: bash displays strange characters after base64 decoding Date: Thu, 6 Aug 2015 16:38:42 -0500 Lines: 116 Approved: bug-bash@gnu.org Message-ID: References: <55C39D51.6010401@posteo.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bd6c488db845d051cab5735 X-Trace: usenet.stanford.edu 1438897128 7354 208.118.235.17 (6 Aug 2015 21:38:48 GMT) X-Complaints-To: action@cs.stanford.edu Cc: "bug-bash@gnu.org" , bash To: Valentin Schmidt Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Ne2jASSoj/q/+gnpiyE8QL9fVWQIsvgkpBccHECSKe4=; b=b++Dp5BpXbP1h9zqkVxSUOVehm8k8MhhEyv3bubPsCJZZRv4oCr860NW0JEKy3oogL hkvzBkoF2YHOsZZchoX0PDLJ6qvbXklPU+nh0gt4Wj/fiOxM7x+oczQiEgkXP5GhL0EH NeXKQU+IWFoDmAqNqYxEdcoyDsbfEuNrCtzI4XLtW3nIZmpBoQFqbsZkrN1FZLfZtJMe IMEI/Ug1OWWgFAjQMO7lw9gSlt2WspgwB5BXSSh/39ZiJHk4SlutmX9k5UQf8eSBF9IQ H9mBQo1pNqf2jmoG7tqSUCKlu1EQl1tybz02Vss4aQH5la0+Rzkpgd7a9XG1NvVpddNS 9voA== X-Received: by 10.60.159.196 with SMTP id xe4mr3578935oeb.23.1438897122540; Thu, 06 Aug 2015 14:38:42 -0700 (PDT) In-Reply-To: <55C39D51.6010401@posteo.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::231 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:11297 --047d7bd6c488db845d051cab5735 Content-Type: text/plain; charset=UTF-8 On Thu, Aug 6, 2015 at 12:45 PM, Valentin Schmidt wrote: > From: vsch@posteo.org > To: bug-bash@gnu.org,bash@packages.debian.org > Subject: bash displays strange characters after base64 decoding > > Configuration Information: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' > -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' > -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL > -DHAVE_CONFIG_H -I. -I../. -I.././include -I.././lib -D_FORTIFY_SOURCE=2 > -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat > -Werror=format-security -Wall > uname output: Linux ongakui 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 > 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux > Machine Type: x86_64-pc-linux-gnu > > Bash Version: 4.3 > Patch Level: 11 > Release Status: release > > Description: > Bash displays strange characters (including command prompt) (see attached > png file) after the execution of the base64 (GNU coreutils 8.21) command > like described as follows: > base64 -d base64.txt > The aim was actually to direct the output of the base64 command into a > file (would have been a .jpg file) but the ">decoded.jpg" was forgotten. > Accordingly the output was directed to stdout instead. This resulted in > the command prompt consisting of strange characters after decoding. > Also any command entered via the keyboard resulted in strange characters > being displayed instead of the typed characters. > Also the output of the ls (which seems to be executed) command (as an > example) is displayed as strange characters. > > Repeat-By: > As described above. > > Not a bug. Also not Bash related. You have sent control characters to your terminal which causes it to display alternate characters. Try entering the reset command (you'll have to do it more or less blindly). -- Visit serverfault.com to get your system administration questions answered. --047d7bd6c488db845d051cab5735 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Thu, Aug 6, 2015 at 12:45 PM, Valentin Schmidt <vsch@posteo.org> wrote:
From: vsch@posteo.org
To: bug-bash@gnu.org<= /a>,bash@pack= ages.debian.org
Subject: bash displays strange characters after base64 decoding

Configuration Information:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:=C2=A0 -DPROGRAM=3D'bash' -DCONF_HOSTTYPE=3D'= ;x86_64' -DCONF_OSTYPE=3D'linux-gnu' -DCONF_MACHTYPE=3D'x86= _64-pc-linux-gnu' -DCONF_VENDOR=3D'pc' -DLOCALEDIR=3D'/usr/= share/locale' -DPACKAGE=3D'bash' -DSHELL -DHAVE_CONFIG_H=C2=A0 = =C2=A0-I.=C2=A0 -I../. -I.././include -I.././lib -D_FORTIFY_SOURCE=3D2 -g -= O2 -fstack-protector --param=3Dssp-buffer-size=3D4 -Wformat -Werror=3Dforma= t-security -Wall
uname output: Linux ongakui 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:3= 0:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.3
Patch Level: 11
Release Status: release

Description:
Bash displays strange characters (including command prompt) (see attached p= ng file) after the execution of the base64 (GNU coreutils 8.21) command lik= e described as follows:
base64 -d base64.txt
The aim was actually to direct the output of the base64 command into a file= (would have been a .jpg file) but the ">decoded.jpg" was forg= otten.
Accordingly the output was directed to stdout instead. This resulted in the= command prompt consisting of strange characters after decoding.
Also any command entered via the keyboard resulted in strange characters be= ing displayed instead of the typed characters.
Also the output of the ls (which seems to be executed) command (as an examp= le) is displayed as strange characters.

Repeat-By:
As described above.


Not a bug. Also not Bash related. You have sent cont= rol characters to your terminal which causes it to display alternate charac= ters.

= Try entering the reset command (you'll have to do it more or less blind= ly).

--
--047d7bd6c488db845d051cab5735--