summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/enctex.ch
AgeCommit message (Collapse)Author
2014-10-28[24.355]: deactivate enctex when reading \^^ab control sequences.Karl Berry
(Following full description from Petr is slightly edited for English). Date: Wed, 30 Jul 2014 10:08:40 +0200 From: Petr Olsak To: Karl Berry Consider this input file: ------------------------- \catcode`\{=1 \catcode`\}=2 \catcode`^=7 \mubyte A XY\endmubyte \mubytein=1 \mubyteout=0 \mubytelog=0 \def\a{\^^58YZ \XYZ XYZ} \show\a \end ------------------------- Then run pdftex -ini -enc ./file.tex The buggy behavior is: \a=macro: ->\AZ \AZ AZ. because encTeX's conversion XY -> A have to be done *before* tokenisation as the manual says. I.e., ^^58 -> X is done *after* encTeX's level and the good result would be: \a=macro: ->\XYZ \AZ AZ. The consequence of this curious bug is the question at http://tex.stackexchange.com/questions/191002/csplain-and-url-package-not-working-with-pdftex Removing this bug isn't trivial because of the bad concept of TeX source in \S 355 where is "goto start_cs" which returns the reading of the control sequence to the start and reads again. But the buffer includes the result of ^^ab conversion which is again transformed by encTeX. I decided to do only a simple correction which supposes that there are "normal" control sequences and two other types: with encTeX's output in their names or with ^^ab in their names. Mixing these types is still not allowed because the implementation needs new data structures and much code. IMHO: 1) probability of such mix is almost zero, 2) I don't want to add much code only because of a bad concept with "goto" in the TeX original code. The change is "robust" for the case where encTeX isn't in use, because there is the conditional "if mubyte_in>0" which is false when encTeX isn't activated. git-svn-id: svn://tug.org/texlive/trunk@35457 c570f23f-e606-0410-a88d-b1316a301751
2014-01-20TeX & Co: New versions from Knuth (TeX tuneup of 2014)Peter Breitenlohner
git-svn-id: svn://tug.org/texlive/trunk@32727 c570f23f-e606-0410-a88d-b1316a301751
2012-11-12Finish merging XeTeX change filesPeter Breitenlohner
git-svn-id: svn://tug.org/texlive/trunk@28236 c570f23f-e606-0410-a88d-b1316a301751
2012-11-11Continue merging XeTeX change files (more)Peter Breitenlohner
git-svn-id: svn://tug.org/texlive/trunk@28233 c570f23f-e606-0410-a88d-b1316a301751
2012-05-07Drop enctex.ch; xetex.ch was removing it anyway, so simplify thingsKhaled Hosny
git-svn-id: svn://tug.org/texlive/trunk@26242 c570f23f-e606-0410-a88d-b1316a301751
2011-07-20libs/t1lib + texk/ps2pkm: bug fix and updatePeter Breitenlohner
git-svn-id: svn://tug.org/texlive/trunk@23187 c570f23f-e606-0410-a88d-b1316a301751
2011-01-09Move encTeX specific part of tex.ch into a separate file enctex.chPeter Breitenlohner
that is not used when building pTeX Adjust the various Makefile fragments accordingly Adjust ptexdir/ptex-base.ch (no need to undo encTeX) git-svn-id: svn://tug.org/texlive/trunk@20992 c570f23f-e606-0410-a88d-b1316a301751