home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!eba!svin09!wsinis07!debra
- From: debra@wsinis07.info.win.tue.nl (Paul De Bra)
- Newsgroups: comp.unix.sysv386
- Subject: Re: can't write 8 bit chars to printer with Esix 4.0.4
- Keywords: Esix, 8-bit chars
- Message-ID: <4831@svin09.info.win.tue.nl>
- Date: 16 Dec 92 12:35:37 GMT
- References: <4808@svin09.info.win.tue.nl>
- Sender: news@eb.ele.tue.nl (The News system)
- Reply-To: debra@info.win.tue.nl
- Organization: Eindhoven University of Technology, the Netherlands
- Lines: 39
-
- In article <4808@svin09.info.win.tue.nl> debra@info.win.tue.nl writes:
- >...
- >The problem is that writing chars with the 8th bit set does not work with
- >Esix 4.0.4 but does work with AT&T. The patch that was posted some time ago
- >to fix the 8th bit problem with uucp and serial lines for Esix 4.0.3
- >(replacing a jge by jmp in clist/Driver.o) does not fix the problem.
- >...
- >Is there a trick to write chars with the 8th bit set to the printer with Esix?
-
- Found the problem, thanks to a pointer from wswietse (Wietse Venema).
-
- The infamous fubyte bug has *not* been fixed in the 4.0.4 version of Unix.
- (it was apparently introduced in 4.0.3).
-
- The fix for 4.0.4 is the same as for 4.0.3 but the addresses are different.
- Following are the diffs between /etc/conf/pack.d/kernel/vm.o as it should
- be (top) vs the vm.o that was shipped (bottom).
- The bug is in lfubyte i believe. The problem is that an unsigned char
- is treated as signed.
-
- ***************
- *** 22,28 ****
- 1167c: 85 c0 testl %eax,%eax
- 1167e: 75 09 jne 0x9 <11689>
- 11680: 8b 45 08 movl 8(%ebp),%eax
- ! 11683: 0f b6 00 movzbl (%eax),%eax
- 11686: 89 45 fc movl %eax,-4(%ebp)
- 11689: c7 05 d8 13 00 00 00 00 00 00 movl $0x0,0x13d8
- 11693: 83 3d dc 13 00 00 00 cmpl $0x0,0x13dc
- --- 22,28 ----
- 1167c: 85 c0 testl %eax,%eax
- 1167e: 75 09 jne 0x9 <11689>
- 11680: 8b 45 08 movl 8(%ebp),%eax
- ! 11683: 0f be 00 movsbl (%eax),%eax
- 11686: 89 45 fc movl %eax,-4(%ebp)
- 11689: c7 05 d8 13 00 00 00 00 00 00 movl $0x0,0x13d8
- 11693: 83 3d dc 13 00 00 00 cmpl $0x0,0x13dc
-
- Paul.
-