Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pasteur!agate!violet.berkeley.edu!edmoy From: edmoy@violet.berkeley.edu Newsgroups: comp.protocols.appletalk Subject: Re: lwsrv problem Keywords: lwsrv Message-ID: <1989Oct27.185948.3825@agate.berkeley.edu> Date: 27 Oct 89 18:59:48 GMT References: <1832@tukki.jyu.fi> Sender: usenet@agate.berkeley.edu (USENET Administrator;;;;ZU44) Organization: University of California, Berkeley Lines: 79 In article <1832@tukki.jyu.fi> kallio@tukki.jyu.fi (Seppo Kallio) writes: >I have two problems with lwsrv: > >1. The apple and Command-key (Control-q and Control-r I think) symbols > (and all Control-letter characters ?) do not print on QMS Laserprinter > (if I Command-F and copy PostScript0 to Unix and macps them to the laser > they will print!) > >2. With courier font I can not get stright right and bold in MS Word. > On screen everything is OK, but not on paper. Same as in 1. if I > copy PostScript0 to Unix and use macps everything is OK. > >These both have something to do with lwsrv. Maybe both are couse of >control-character loss in lwsrv. I did check that lwsrv does not have any >option to control this control-character transfer. > >Seppo Kallio kallio@tukki.jyu.fi (128.214.7.5) >University of Jyvaskyla-- >Seppo Kallio kallio@tukki.jyu.fi phone +358 41 292809 >University of Jyvaskyla kallio@finjyu.bitnet telefax +358 41 292797 >U of Jyvaskyla, CC Jyvaskyla, Finland telex Finland 28218 JYU SF >N{m{ ovat henkil|kohtaisia ajatuksiani. These are my personal opinions. Yes, the problem is that lwsrv passes character codes that happen to be ASCII escape characters (like the Apple symbol and check mark) without conversion. Then, many line printer spooler programs (like BSD lpr) strips control characters. Here is a patch that I sent to Columbia long ago, but it never got anywhere. Edward Moy Principal Programmer - Macintosh & Unix Workstation Support Services Workstation Software Support Group University of California Berkeley, CA 94720 edmoy@violet.Berkeley.EDU ucbvax!violet!edmoy P.S. Thanks for using my macps program. -------------- cut ----------------- cut ---------------------- cut --------- *** simple.c.orig Sat May 21 11:14:03 1988 --- simple.c Fri Feb 24 13:32:37 1989 *************** *** 333,339 if (crtolf && c == '\r') c = '\n'; if (needquote) { ! if (isascii(c)) /* is it standard ascii? */ putc(c,outfile); /* yes... so echo */ else /* otherwise echo \ddd */ fprintf(outfile,"\\%03o",(unsigned char) c); --- 344,350 ----- if (crtolf && c == '\r') c = '\n'; if (needquote) { ! if (isascii(c) && (isspace(c) || !iscntrl(c))) /* is it standard ascii? */ putc(c,outfile); /* yes... so echo */ else /* otherwise echo \ddd */ fprintf(outfile,"\\%03o",(unsigned char) c); *************** *** 400,406 if (crtolf && c == '\r') c = '\n'; if (needquote) { ! if (isascii(c)) /* is it standard ascii? */ putc(c,outfile); /* yes... so echo */ else /* otherwise echo \ddd */ fprintf(outfile,"\\%03o",(unsigned char) c); --- 421,427 ----- if (crtolf && c == '\r') c = '\n'; if (needquote) { ! if (isascii(c) && (isspace(c) || !iscntrl(c))) { /* standard ascii? */ putc(c,outfile); /* yes... so echo */ #ifdef LBUFFER if (l < LBUFFER)