summaryrefslogtreecommitdiff
path: root/libre/texlive-bin/ptex-debug-print.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/texlive-bin/ptex-debug-print.patch')
-rw-r--r--libre/texlive-bin/ptex-debug-print.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/libre/texlive-bin/ptex-debug-print.patch b/libre/texlive-bin/ptex-debug-print.patch
new file mode 100644
index 000000000..cc2953d99
--- /dev/null
+++ b/libre/texlive-bin/ptex-debug-print.patch
@@ -0,0 +1,14 @@
+diff --git a/texk/ptexenc/ptexenc.c b/texk/ptexenc/ptexenc.c
+index 4e81dbee7c..3c98d68125 100644
+--- a/texk/ptexenc/ptexenc.c
++++ b/texk/ptexenc/ptexenc.c
+@@ -1044,7 +1044,9 @@ long input_line2(FILE *fp, unsigned char *buff, unsigned char *buff2,
+ enc = ptenc_guess_enc(fp);
+ if (string_to_enc(enc) > 0) {
+ infile_enc[fd] = string_to_enc(enc);
++#ifdef DEBUG
+ fprintf(stderr, "(guessed encoding #%d: %s = %s)", fd, enc, enc_to_string(infile_enc[fd]));
++#endif /* DEBUG */
+ } else {
+ infile_enc[fd] = get_file_enc();
+ }