Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 83117

Summary: joe is no longer binary safe
Product: [Retired] Red Hat Linux Reporter: Oskari Saarenmaa <oskari>
Component: joeAssignee: Lon Hohberger <lhh>
Status: CLOSED WONTFIX QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-10-06 17:51:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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:

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

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

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:

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