home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / sysv386 / 17449 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  2.2 KB

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