Subject: [netatalk-admins] Anomoly in nbplkup
From: Robert Edwards (bob@faceng.anu.edu.au)
Date: Wed Apr 15 1998 - 22:51:22 EDT
I first noticed a slight anomoly (sp?) in netatalk-1.3.3 which I reported
back to the folk at U. Mich but it remained in netatalk-1.4b2 and I have
just downloaded Adrian Sun's patched code from U. Washington and found the
same "bug".
The problem is in the asciize() routine that uses the standard C functions
isascii() and toascii() to convert non 7-bit extended Macintosh characters
to 7-bit characters by zeroing the 8th bit before printing them on a Unix
device.
I have an Asante Ether*Print box on my network (the '*' in the middle of
the name is actually a big dot on a Macintosh). I can't recall the actual
8-bit code that renders this dot on a Mac, but when it is toascii()'d, it
turns into some obnoxious control character that stuffs up the character
mapping on the console driver on a Linux box (at least, at version 2.0.27).
I replaced the code in the asciize() routine with code that renders an '*'
if the 8-bit - 7-bit conversion yields a non-printing character (hence my
Asante box now appears as an Ether*Print).
If this problem has affected anyone else, my solution is to modify asciize():
if ( !isascii( *p )) {
*p = toascii( *p );
if ( !isprint( *p ))
*p = '*';
}
Cheers,
Bob Edwards,
Computer and Robotics Engineer, e-mail: bob@faceng.anu.edu.au
Department of Engineering, phone: (+61) 2 6249 4090
Australian National University, fax: (+61) 2 6249 0506
Canberra, AUSTRALIA, 0200 mobile: (+61) 0416 166 761
WWW: http://spigot.anu.edu.au/people/bob/home.html
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:32:23 EST