Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!lth.se!bellman!leif From: leif@control.lth.se (Leif Andersson) Newsgroups: comp.text.tex Subject: Re: 8 bit in TeX3.0, how to do it with (gnu)emacs8? Message-ID: Date: 19 Nov 90 21:30:38 GMT References: <1990Nov18.202942.1175@uni-paderborn.de> Sender: newsuser@lth.se (LTH network news server) Organization: Dept. Automatic Control, Lund Inst. of Technology, Sweden Lines: 44 In-Reply-To: massa@uni-paderborn.de's message of 18 Nov 90 20:29:42 GMT Provided you run the web2c-version of TeX-3.0, the reason you can't make it work is that US programmers simply don't understand the concept of eight bit clean programs. (It's true, too many of them don't). The following patch to tex-3.0/web2c/tex/extra.c will fix the problem. *** O.extra.c Mon Sep 17 12:53:36 1990 --- extra.c Mon Sep 17 12:56:23 1990 *************** *** 390,400 **** if (f == stdin) clearerr(stdin); #endif while ( last < bufsize && ((i = getc(f)) != EOF) && i != '\n') { ! #ifdef NONASCII ! buffer[last++] = i; ! #else ! buffer[last++] = (i > 127 || i < 0)?' ':i; ! #endif } if (i == EOF && last == first) return(false); --- 390,396 ---- if (f == stdin) clearerr(stdin); #endif while ( last < bufsize && ((i = getc(f)) != EOF) && i != '\n') { ! buffer[last++] = i; } if (i == EOF && last == first) return(false); -------------------------------------------------------------------- It could of course be argued that a patch is not needed, there is an #ifdef NONASCII, but in my opinion this is wrong, because NONASCII refers to things like EBCDIC. The README file of the whole package mentions 8-bit ASCII, which is a bit of a contradiction, but it supports my view, so we'll let it pass :-) ------------------------------------------------------------------------------- Leif Andersson Internet: leif@Control.LTH.Se Dept. of Automatic Control Bitnet: BODELA@SELDC51 Lund Institute of Technology Phone: +46 46 109742 P.O. Box 118 Fax: +46 46 138118 S-221 00 Lund, Sweden -------------------------------------------------------------------------------