GNU bug report logs - #9344
about the command of 'cat'

Previous Next

Package: coreutils;

Reported by: 博高 <doctorinmit <at> gmail.com>

Date: Mon, 22 Aug 2011 20:04:02 UTC

Severity: normal

Tags: notabug

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: 博高 <doctorinmit <at> gmail.com>
Cc: 9344 <at> debbugs.gnu.org
Subject: bug#9344: about the command of 'cat'
Date: Mon, 22 Aug 2011 23:36:30 +0100
On 08/22/2011 08:21 PM, 博高 wrote:
> Hello:
>   I am a user of ubuntu 10.04.2.While I am trying to use 'cat' to
> display a binary file.....Every letter on my display goes wrong....
>   yours GB from China

There was probably a character sequence in the binary file
to put your terminal into an alternate character set mode.
For example try:

  tput smacs; echo abcd; tput rmacs

If your terminal is messed up, the `reset` command
(even if you can't see what you're typing), will fix things.

Also note the `cat -v` and `od -Ax -tx1z -v` coreutils
commands for viewing binary files.

cheers,
Pádraig.




This bug report was last modified 13 years and 280 days ago.

Previous Next


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