Path: utzoo!attcan!uunet!husc6!bloom-beacon!oberon!cit-vax!amdahl!littauer From: littauer@amdahl.uts.amdahl.com (Tom Littauer) Newsgroups: comp.sys.ibm.pc Subject: Re: Microsoft C Bug or Feature ????? Message-ID: Date: 6 Aug 88 15:41:17 GMT References: <8808021504.AA05128@wilson.csri.toronto.edu> <11074@cgl.ucsf.EDU> Reply-To: littauer@amdahl.uts.amdahl.com (Tom Littauer) Organization: Amdahl Corporation, Sunnyvale CA Lines: 25 In article <11074@cgl.ucsf.EDU> kneller@socrates.ucsf.edu.UUCP (Don Kneller) writes: >In article <8808021504.AA05128@wilson.csri.toronto.edu> byu@csri.toronto.edu (Benjamin Yu) writes: >>In either case, can anyone advise me how I can send hex 1A to stdprn?? >> >You will have to place stdprn into binary mode first. The variation I was trying to make work once was sending print output to stdout, then redirecting it to either a file or PRN: as desired. Yes, I set the mode of stdout to binary, and it worked fine TO DISK ONLY. When I redirected to the printer, the 0x1a got dropped, causing much confusion. Even copying the (correct) disk file to the printer failed the same way. I was sure my printer was broken, and put much pressure on the vendor. They came through for me (thank you, Fujitsu America) and discovered that the printer driver was eating the 0x1a. I fell back on using the BIOS call to send data to the printer. That works. Good luck on anything else. -- UUCP: littauer@amdahl.amdahl.com or: {sun,decwrl,hplabs,pyramid,ames,uunet}!amdahl!littauer DDD: (408) 737-5056 USPS: Amdahl Corp. M/S 337, 1250 E. Arques Av, Sunnyvale, CA 94086 I'll tell you when I'm giving you the party line. The rest of the time it's my very own ravings (accept no substitutes).