Skip to content

Commit

Permalink
tectonic: add a \pdfmdfivesum primitive
Browse files Browse the repository at this point in the history
Encountered in the wild: a problem with code that seems to think we're pdftex
(perhaps because of the \pdfoutput keyword?) and therefore ends up with a
busted definition of a \pdf@filemdfivesum macro.

I suspect that this is an example of Khaled Hosny's warning that maybe
defining \pdfoutput is a bad idea because things will start thinking that
we're pdftex. But the hope is that it won't be too much trouble to fake
things, so we plunge on ahead.

Since this adds a new primitive and string, this requires a format version
bump. I have not done that here since there are other changes I want to make,
so we are:

[temporarily-broken]
  • Loading branch information
pkgw committed May 26, 2017
1 parent 4ecfe95 commit 4814923
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tectonic/strings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1409,3 +1409,4 @@ Missing character: Incomplete substitution
Using character substitution:
synctex
pdfoutput
pdfmdfivesum
1 change: 1 addition & 0 deletions tectonic/xetexini.c
Original file line number Diff line number Diff line change
Expand Up @@ -4057,6 +4057,7 @@ tt_run_engine(char *input_file_name)

primitive(S(strcmp), CONVERT, PDF_STRCMP_CODE);
primitive(S(mdfivesum), CONVERT, PDF_MDFIVE_SUM_CODE);
primitive(S(pdfmdfivesum), CONVERT, PDF_MDFIVE_SUM_CODE);

primitive(S(shellescape), LAST_ITEM, PDF_SHELL_ESCAPE_CODE);
primitive(S(XeTeXpdfpagecount), LAST_ITEM, XETEX_PDF_PAGE_COUNT_CODE);
Expand Down

0 comments on commit 4814923

Please sign in to comment.