Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Dennis Williamson 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: References: <20190623123102.fa9221e067faed8874ea7fc2@gmx.de> 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 To: bitfreak25 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <20190623123102.fa9221e067faed8874ea7fc2@gmx.de> Xref: csiph.com gnu.bash.bug:15067 On Sun, Jun 23, 2019, 5:31 AM bitfreak25 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.