SUMMARY: Weird lpd Job Classification truncation of 'A' on banner page

From: Marcel Bernards (bernards@ECN.NL)
Date: Tue May 26 1992 - 08:55:09 CDT


It appered to be a known , low priority bug, Thanx Daniel !
It is present on 4.1.1 and 4.1.2 SunOS on all platforms.
Probably also on Pre4.1.1, but I'm not sure. Its a bad byt in a array table.

A simple modification of this byte in /usr/lib/lpd did the job.
I did not use adb since I never liked the command syntax.
 (adb - a dumb blunder , the most weird program in the ditribution ;-),

I used bpe ( binary patch editor ) for this job.
This is a nice , pctools like editor for binary files.
( see com.sources.* archives or use archie to locate )

The bad 'a' character is is located at 0xEAB1 (0XC8E1 on sun3)

----- Begin Included Message -----

>From trinkle@cs.purdue.edu Fri May 22 22:40:18 1992
Subject: Re: Weird lpd Job Classification truncation of 'A' on banner page

It appears to be a bug in the source. There is a table that maps
the ISO Latin-1 character to an ASCII equivalent, and the cap A is
really a little a. From lpdchars.c:

char map_to_ascii[256] = {
        /* 0x00 - 0x1f: control characters */
        ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
        ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
        ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
        ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
        /* 0x20 - 0x7f: printable aSCII */
        ' ', '!', '\"', '#', '$', '%', '&', '\'',
        '(', ')', '*', '+', ',', '-', '.', '/',
        '0', '1', '2', '3', '4', '5', '6', '7',
        '8', '9', ':', ';', '<', '=', '>', '?',
        '@', 'a', 'B', 'C', 'D', 'E', 'F', 'G', <======= this line
        'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
        'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
        'X', 'Y', 'Z', '[', '\\', ']', '^', '_',
        '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
        'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
        'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
        'x', 'y', 'z', '{', '|', '}', '~', ' ',

        [ ... and so on .... ]

Daniel Trinkle trinkle@cs.purdue.edu
Dept. of Computer Sciences {backbone}!purdue!trinkle
Purdue University 317-494-7844
West Lafayette, IN 47907

----- End Included Message -----

Thanx to all who responded:

Greetings,

Marcel Bernards, UNIX & Net sysadm Netherlands Energy Research Foundation ECN
(and SURFnet IC/ICP), Phone: (+31 /0)2246 4579 Fax: (+31 /0)2246 1864
E-Mail: Bernards@ECN.NL, SnailMail: P.O. Box 1, 1755 ZG Petten
SCREAMNet : AAAAAARGHH!HUH?? : Disclaimer: "The AntiChrist is the Computer !"



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:42 CDT