Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15067

Re: command "cat /etc/localtime" breaks output on tty-terminal

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Dennis Williamson <dennistwilliamson@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: command "cat /etc/localtime" breaks output on tty-terminal
Date Sun, 23 Jun 2019 06:04:29 -0500
Lines 35
Approved bug-bash@gnu.org
Message-ID <mailman.765.1561287901.10840.bug-bash@gnu.org> (permalink)
References <20190623123102.fa9221e067faed8874ea7fc2@gmx.de> <CANaoh6++Y25Ug+TKww3+WvbvOer8=jpGLLZohwWUyjvoBRFUrQ@mail.gmail.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Trace usenet.stanford.edu 1561287903 4943 209.51.188.17 (23 Jun 2019 11:05:03 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash <bug-bash@gnu.org>
To bitfreak25 <bitfreak25@gmx.de>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Sg4X9SxnvR+JazTOiwBUK+iIkbzFzIi+B2YkIM/vLT4=; b=RjRCQTowzZeJblqa3zszyMR9oB0H7uZfnqqqzIFmtu27zZThid24Nn2JVQCxdZf4o5 5J7yK5Q7qyyZ5vFYCawZ+BGylg3MhJVqQI87DVWFk9CbGPkoSBg//pVEmp9zLmCjxKJJ ZQZQanHiur+gthqyEnk9mPnjm3gGrj3kAenn3bhK8viipWAslSl9wsgqSXsfqQIyz5wp xdClK1uvVegd7vccMOaUi/vjkJzgiXmOK98+4zW5z1pCbWrC4sCRgOvisWzZDw/nKtUs tFphIlXHEjeiDgE/DWS3DycHcllH5JXtVNst2kzfJkuGeeVx6sIVv4FUnLWa+G339Vs9 FM7g==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Sg4X9SxnvR+JazTOiwBUK+iIkbzFzIi+B2YkIM/vLT4=; b=MOslEoDO7UOcV9MHRVrLB5hhFXqIXoUryBIbDCnRFKPQS/PszIKfFNt72CTbTU2Kdf QGpjTm9iRWom2g7C9sVj3lzz1pAxU+0RiuQ0hxhTLZvYkqyJ2wnCkvZ4oPGplZUEfJuO 3hCNoYqUhtXmUDx4Zghs1OOco2LjQ0avQm9FE96vn1Ge2nj6m7CJYUXSI5k0m0kout4a VIjUuvABSaQbIDfef8V371G3BHLAJw31+VchyGWEZCCqiETc/Y24Wtbl5azjIVHBUMKE SMqkuewwNI6QECIv2gTyWq1sYx9o+L8e2ktuQW47d2r27RMI9S20+XdKmZVS99TLyDL/ GJHw==
X-Gm-Message-State APjAAAW+kMCbgtBxrWAYSVg2me6LSaMErAYZ67RWdnBkfcUOtHGNR9Qb Kg6sSX7wsgNQNSk8Rn8YTQiAv0n1xxhYdj+XJqnb
X-Google-Smtp-Source APXvYqwWfYrnm/7v6fLo+WvRpZHraQwmY3KeNvJ8GumSuyXQrn7XWuGgVN4eA31ECr/7iy1DLhhKIG21Otj/baabm3o=
X-Received by 2002:a1c:448b:: with SMTP id r133mr11836503wma.114.1561287882475; Sun, 23 Jun 2019 04:04:42 -0700 (PDT)
In-Reply-To <20190623123102.fa9221e067faed8874ea7fc2@gmx.de>
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2a00:1450:4864:20::332
X-Content-Filtered-By Mailman/MimeDel 2.1.23
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <CANaoh6++Y25Ug+TKww3+WvbvOer8=jpGLLZohwWUyjvoBRFUrQ@mail.gmail.com>
X-Mailman-Original-References <20190623123102.fa9221e067faed8874ea7fc2@gmx.de>
Xref csiph.com gnu.bash.bug:15067

Show key headers only | View raw


On Sun, Jun 23, 2019, 5:31 AM bitfreak25 <bitfreak25@gmx.de> wrote:

> OS: Arch Linux 5.1.12-arch1-1-ARCH (tty1)
> Bash-Version: 5.0.7(1)-release
> localization: de_DE.UTF-8 UTF-8
> keymap: de-latin1-nodeadkeys
>
> Description:
> The command "cat /etc/localtime" was called in a tty-terminal. After that
> some characters will be printed incorrectly (mostly "cyrillic" chars
> instead of the correct ones). The typed chars seems to be handled correctly
> (e.g. calling "exit") but the output is broken at this point. This
> behaviour is reproducible on my other PC with Debian Stable (Bash-Version
> in Debian: 4.4-5), so it seems to be a old bug. Changing to another tty or
> rebooting the OS will fix this behaviour until the command is called again.
>
> Kind regards,
> bitfreak
>
>


/etc/localtime is symlinked to a file that contains time zone data. If you
enter the command

file -L /etc/localtime

you'll see that that's the case. It contains data that's not meant to be
displayed including control characters which cause the effect you observed.
If you cat any so-called binary file such as this you are likely to see the
same kind of thing happen. Entering the

reset

command in the affected terminal will correct the problem after it occurs.

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: command "cat /etc/localtime" breaks output on tty-terminal Dennis Williamson <dennistwilliamson@gmail.com> - 2019-06-23 06:04 -0500

csiph-web