[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 02:58:04 CET 2009


Hi Heiko,

> The source code seems to suggest, a two byte BOM marker
> skips the conversion test, but neither ^^fe^^ff, ^^^^feff,
> \376\377 work.

Is the following patch right?

--- spc_pdfm.c.orig	Tue Dec 15 10:42:55 2009
+++ spc_pdfm.c	Tue Dec 15 10:49:39 2009
@@ -468,6 +468,10 @@
   if (!instring)
     return 0;
 
+  if (pdf_string_length(instring) >= 2 &&
+      !memcmp(pdf_string_value(instring), "\xfe\xff", 2))
+    return 0;
+
   inlen = pdf_string_length(instring);
   inbuf = pdf_string_value(instring);
 

Thansk,
Akira



More information about the XeTeX mailing list