Warp's default editor E.exe appends EOF (26d) byte

by Al Savage

The default system text editor is x:\OS2\E.exe. It likes to append an End-of-file character byte (EOF = ASCII 26d, 1Ah, ) when it saves a file. This is historically correct, and many older utilities that were designed to be used to manipulate text files depend on the file ending with an EOF byte.

The problem: Some web browsers do not like an HTML file to end with a EOF byte. Technically, the browsers are broken, but it doesn't do any good to point fingers and jump up and down. The offending browsers (NS Navigator 4.x for Win, and IE for Win) will display a "box" at the end of the page when they encounter the EOF byte. Note that NS 4.61 for OS/2 does not have this problem!

Back when I used to try to use E.exe to edit HTML files, I'd have to go back and edit the file with some other utility and resave it to get rid of that box. It used to drive me nuts, but I never really tried to pin down what was causing it. Then I switched to the MED editor and I hadn't thought about this for a while, until the topic came up recently in conversation with someone else who figured out the cause.

Here's a test file: http://asavage.dyndns.org/OS2/Warp4Install/BoxOnEnd.html created with E.exe, and containing the EOF marker (1Ah).

Screenshot:

It looks just fine if viewed via NS 4.61 for OS/2. But, if viewed with NS 4.76 for Windoze, it shows the box char at the end.

Screenshot:

To further confuse the issue, if this file is served by an ftp server, it is rendered OK again by NS 4.76/Win.

Test URL: ftp://asavage.dyndns.org/OS2/BoxOnEnd.html

So it's only a problem if an HTML file is served via http and rendered by the Win version of NS.

Felix Miata compiled this table:

The 'Fix'
A modified version of E.exe can eliminate this problem, if you don't use any EOF-sensitive textfile manipulation apps. Get e.exe (from Al's server) (from Paul's server) and unzip it. Rename x:\OS2\E.exe, then copy the new one there.

There is also a modified version of the e.exe that ships with MCP FP1 (XR_C001) at Paul's server.

Revision History:
30Apr2013 05-Jun-01 18-Oct-01 06-Nov-01
 * Fixed up HTML to validate properly; no content change.
 * Initial release.
 * Changed link to Paul's server, so that MCP version could be seen.
 * Repaired link to BoxAtEnd01.png