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


Groups > gnu.bash.bug > #15068

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 bitfreak25 <bitfreak25@gmx.de>
Newsgroups gnu.bash.bug
Subject Re: command "cat /etc/localtime" breaks output on tty-terminal
Date Sun, 23 Jun 2019 14:18:10 +0200
Lines 59
Approved bug-bash@gnu.org
Message-ID <mailman.772.1561292312.10840.bug-bash@gnu.org> (permalink)
References <20190623123102.fa9221e067faed8874ea7fc2@gmx.de> <CANaoh6++Y25Ug+TKww3+WvbvOer8=jpGLLZohwWUyjvoBRFUrQ@mail.gmail.com> <20190623141810.d3ba78fb13821008b401f45f@gmx.de>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding quoted-printable
X-Trace usenet.stanford.edu 1561292312 8127 209.51.188.17 (23 Jun 2019 12:18:32 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1561292291; bh=S5FJSpV2yWxYu90ochBrezUJ2zRv4ZpwLkwjHRqIA5E=; h=X-UI-Sender-Class:Date:From:To:Subject:In-Reply-To:References; b=VmnZOkDR6PNPlgbonHHEyKj8B6cj2/UprnIihacsGX8xcrrC4ON+HqRJXAa21GBFS RQ/Ye7CwHilMoQg2/YFipTOfq2g4CrZKG6Oz6kRR0JFBNG+cNTGn25nzBqw8bL+9h4 E342BOsVMRseOsZtgoDR7Dazpisb2vYhG5shFM3s=
X-UI-Sender-Class 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
In-Reply-To <CANaoh6++Y25Ug+TKww3+WvbvOer8=jpGLLZohwWUyjvoBRFUrQ@mail.gmail.com>
X-Mailer Sylpheed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4hwtVCqDvPOXf6LWoLS2x2SrhmS6TU3OlQyxZR4MP9/PJ7bcjRH96DGI5bddpxhagI DXssb8GP+ipPUMpOe0MXEX5IcL+HKZ4yNtgzC0No+B7TAhhYb8iwmh2PnQVFf1Yg2RbDbJSmS O9YkX9/2eVSTSXuX5XzOrHQlwz1zeVeoeEIN71hlp+1lmGX9WSvd16F/Tj3oB8wVh/N1WMDhn 4EnGSTGCC1MPiFLn8XmjIu3TRC8Affoer+AxcsHt5Y+XFmQU/bt+T
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 212.227.17.22
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 <20190623141810.d3ba78fb13821008b401f45f@gmx.de>
X-Mailman-Original-References <20190623123102.fa9221e067faed8874ea7fc2@gmx.de> <CANaoh6++Y25Ug+TKww3+WvbvOer8=jpGLLZohwWUyjvoBRFUrQ@mail.gmail.com>
Xref csiph.com gnu.bash.bug:15068

Show key headers only | View raw


On Sun, 23 Jun 2019 06:04:29 -0500
Dennis Williamson <dennistwilliamson@gmail.com> wrote:

> 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.

I kind of thought that this could be the reason. It also happens with
"cat /dev/urandom" which is stopped by [STRG] + [C].

It seems to be a very small bug thats only breaks the output with an
unusual command and there are already 3 workarounds. But in my opinion
it should be fixed some time as it isn't the correct behaviour like
doing it with a gui-terminal e.g. xfce4-terminal.

Kind regards,
bitfreak

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


Thread

Re: command "cat /etc/localtime" breaks output on tty-terminal bitfreak25 <bitfreak25@gmx.de> - 2019-06-23 14:18 +0200

csiph-web