Bug#505455: /bin/cat: cat: Don't write binary chars to terminal

2008-11-15 Thread Olaf van der Spek
On Thu, Nov 13, 2008 at 10:20 PM, Bob Proulx <[EMAIL PROTECTED]> wrote: >> So if I ask in debian-devel: "What is the recommended way to view a >> file?", what will the answer be? > > However even if you do not like any of the recommendations it doesn't > change the fact that 'cat' isn't designed as

Bug#505455: /bin/cat: cat: Don't write binary chars to terminal

2008-11-13 Thread Bob Proulx
Olaf van der Spek wrote: > Michael Stone wrote: > > Olaf van der Spek wrote: > > > Maybe you should look at this from the perspective of the user instead > > > of the perspective of the developer. > > > > By "from the perspective of the user" you mean "from the perspective of the > > user who doesn

Bug#505455: /bin/cat: cat: Don't write binary chars to terminal

2008-11-13 Thread Olaf van der Spek
On Thu, Nov 13, 2008 at 12:57 AM, Michael Stone <[EMAIL PROTECTED]> wrote: > On Wed, Nov 12, 2008 at 11:21:08PM +0100, Olaf van der Spek wrote: >> >> Maybe you should look at this from the perspective of the user instead >> of the perspective of the developer. > > By "from the perspective of the us

Bug#505455: /bin/cat: cat: Don't write binary chars to terminal

2008-11-12 Thread Michael Stone
On Wed, Nov 12, 2008 at 11:21:08PM +0100, Olaf van der Spek wrote: Maybe you should look at this from the perspective of the user instead of the perspective of the developer. By "from the perspective of the user" you mean "from the perspective of the user who doesn't want to use the proper too

Bug#505455: /bin/cat: cat: Don't write binary chars to terminal

2008-11-12 Thread Olaf van der Spek
On Wed, Nov 12, 2008 at 11:11 PM, Michael Stone <[EMAIL PROTECTED]> wrote: > On Wed, Nov 12, 2008 at 08:37:14PM +0100, you wrote: >> >> In what case would that misbehave? > > Don't know, don't want to find out; Ah, it's just an assumption. ;) > it's just not what cat is there for. > Among other

Bug#505455: /bin/cat: cat: Don't write binary chars to terminal

2008-11-12 Thread Michael Stone
On Wed, Nov 12, 2008 at 08:37:14PM +0100, you wrote: In what case would that misbehave? Don't know, don't want to find out; it's just not what cat is there for. Among other things, I'd assume it's a nightmare for UTF-8. If nothing else, it's a whole unnecessary code path that needs to be mai

Bug#505455: /bin/cat: cat: Don't write binary chars to terminal

2008-11-12 Thread Olaf van der Spek
On Wed, Nov 12, 2008 at 6:17 PM, Michael Stone <[EMAIL PROTECTED]> wrote: > On Wed, Nov 12, 2008 at 05:55:00PM +0100, Olaf van der Spek wrote: >> >> Piping tail to less doesn't work as well as to cat -v... > > Correct; you'd be better served by using the "F" function within less. > Or, if you reall

Bug#505455: /bin/cat: cat: Don't write binary chars to terminal

2008-11-12 Thread Michael Stone
On Wed, Nov 12, 2008 at 05:55:00PM +0100, Olaf van der Spek wrote: Piping tail to less doesn't work as well as to cat -v... Correct; you'd be better served by using the "F" function within less. Or, if you really really want to just pump data to the screen, try tr -c '[:print:][:blank:]' '?'

Bug#505455: /bin/cat: cat: Don't write binary chars to terminal

2008-11-12 Thread Sam Hocevar
On Wed, Nov 12, 2008, Olaf van der Spek wrote: > Package: coreutils > Version: 6.10-6 > Severity: normal > File: /bin/cat > > Hi, > > I've got MySQL log files with queries that contain binary parts. When I use > cat or tail to view those, my terminal gets messed up. > Could cat not write binary

Bug#505455: /bin/cat: cat: Don't write binary chars to terminal

2008-11-12 Thread Olaf van der Spek
On Wed, Nov 12, 2008 at 5:02 PM, Sam Hocevar <[EMAIL PROTECTED]> wrote: > On Wed, Nov 12, 2008, Olaf van der Spek wrote: >> Package: coreutils >> Version: 6.10-6 >> Severity: normal >> File: /bin/cat >> >> Hi, >> >> I've got MySQL log files with queries that contain binary parts. When I use >> cat

Bug#505455: /bin/cat: cat: Don't write binary chars to terminal

2008-11-12 Thread Olaf van der Spek
On Wed, Nov 12, 2008 at 4:54 PM, Bob Proulx <[EMAIL PROTECTED]> wrote: > Thanks for the report but what you are describing is not a bug in the > 'cat' program but a misuse of it. Thanks for the explanation. I was afraid of that. I assume the same applies to tail. But what'd be a replacement for ta

Bug#505455: /bin/cat: cat: Don't write binary chars to terminal

2008-11-12 Thread Olaf van der Spek
Package: coreutils Version: 6.10-6 Severity: normal File: /bin/cat Hi, I've got MySQL log files with queries that contain binary parts. When I use cat or tail to view those, my terminal gets messed up. Could cat not write binary chars (< 32) to the terminal? Replace them with another char that