Bug 83117 - joe is no longer binary safe
Summary: joe is no longer binary safe
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: joe
Version: 8.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Lon Hohberger
QA Contact: Jay Turner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-01-30 14:28 UTC by Oskari Saarenmaa
Modified: 2015-01-08 00:03 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-10-06 17:51:24 UTC
Embargoed:


Attachments (Terms of Use)

Description Oskari Saarenmaa 2003-01-30 14:28:18 UTC
Description of problem:
The old joe 2.8 used to be binary safe, even though it wasn't neccessarily
suitable for editing binaries, you could view and search them with it.

The new versions of joe (at least version 2.9.7) mangle my screen if I open a
binary file for editing.

How reproducible:
Always

Steps to Reproduce:
1. joe /usr/bin/joe

Comment 1 Lon Hohberger 2003-01-30 15:28:19 UTC
I have reproduced this problem.  I'm not yet convinced that it is joe; the
screen gets mangled differently depending on the terminal type -- for instance:

joe /usr/bin/joe   (on a virtual terminal)

gets different output then the same command run in an xterm, which is different
from what is displayed in konsole.  Could you name a previous version of joe in
which editing binaries worked so I can double-check its behavior on RHL 8.0?

In the meantime, hexedit and grep are probably more suitable for searching
binary files - joe was never really designed with binary editing in mind.


Comment 2 Oskari Saarenmaa 2003-01-30 16:03:25 UTC
I'm using joe mostly under gnome-terminal, on both RHL 7.3 and 8.0.

The old version (2.8, released in 1995) of joe edits binary files happily, it
was included in RHL 6.2, and is also available at
ftp://ftp.funet.fi/pub/unix/editors/joe

I'm aware that joe isn't designed for editing binaries, but it is annoying to
get your terminal mangled if you accidentally open a binary file, especially
when it used to work okay with them.  And actually 'joe foobar.o' is often nicer
to use than strings foobar.o | egrep ...

I guess the new version of joe doesn't filter out some terminal control codes in
the files it displays, and those get passed to the terminal which does things it
shouldn't.

Comment 3 Lon Hohberger 2003-02-18 21:48:56 UTC
You can also try disabling -asis on line 27 of joerc (put a space in front of
it).  This might help the mangling problems.


Comment 4 Oskari Saarenmaa 2003-02-19 16:16:07 UTC
Ah, yes, that fixes the problem.  Didn't realize the new version of joe had
different default configuration.

Disabling -asis causes the scandinavic characters not to show up right though.
Maybe this bug report should be changed to an enhancement request for an option
which only filters out the screen control characters.

Comment 5 Lon Hohberger 2003-08-04 22:51:02 UTC
It is probably better to allow joe to use UTF-8 locale encoding the way the rest
of the Red Hat Linux distribution does.  Unfortunately, it will probably require
a substantial rewrite.  I haven't heard one way or the other whether or not the
maintainers were going to look into this, so I asked on their mailing list.

Check out joe's homepage:

http://sf.net/projects/joe-editor

Comment 6 Lon Hohberger 2003-10-06 17:51:24 UTC
I'll try and get this up and going for joe-3.0.0 if possible; for now I'm going
to mark as 'wontfix' since a workaround exists (even though it's annoying).


Note You need to log in before you can comment on or make changes to this bug.