[XeTeX] hyperref 6.79n breaks xetex's (xdvipdfmx) ability to set proper page dimensions (and ove

Akira Kakuto kakuto at fuk.kindai.ac.jp
Tue Dec 15 03:35:52 CET 2009


> Is the following patch right?

I missed to read next two lines...

--- spc_pdfm.c.orig	Tue Dec 15 10:42:55 2009
+++ spc_pdfm.c	Tue Dec 15 11:28:26 2009
@@ -471,6 +471,9 @@
   inlen = pdf_string_length(instring);
   inbuf = pdf_string_value(instring);
 
+  if (inlen >= 2 && !memcmp(inbuf, "\xfe\xff", 2))
+    return 0;
+
   /* check if the input string is strictly ASCII */
   for (cp = inbuf; cp < inbuf + inlen; ++cp) {
     if (*cp > 127) {

Best,
Akira



More information about the XeTeX mailing list