From e1fed53bada303707115d08fe6f857f6da65adcd Mon Sep 17 00:00:00 2001 From: Arthur Reutenauer Date: Mon, 6 Jul 2015 16:09:36 +0000 Subject: Escape closing parenthesis in PDF strings; fixes bug 110 in XeTeX’s tracker. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://tug.org/texlive/trunk@37783 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipdfm-x/dpxutil.h | 3 ++- Build/source/texk/dvipdfm-x/pdfobj.c | 3 ++- Build/source/texk/dvipdfm-x/pdfparse.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'Build') diff --git a/Build/source/texk/dvipdfm-x/dpxutil.h b/Build/source/texk/dvipdfm-x/dpxutil.h index 1589f18173f..f9defab88de 100644 --- a/Build/source/texk/dvipdfm-x/dpxutil.h +++ b/Build/source/texk/dvipdfm-x/dpxutil.h @@ -35,7 +35,8 @@ (c) == '\r' || (c) == '\n' || (c) == '\0') #endif #ifndef is_delim -#define is_delim(c) ((c) == '(' || (c) == '/' || \ +#define is_delim(c) ((c) == '(' || (c) == ')' || \ + (c) == '/' || \ (c) == '<' || (c) == '>' || \ (c) == '[' || (c) == ']' || \ (c) == '{' || (c) == '}' || \ diff --git a/Build/source/texk/dvipdfm-x/pdfobj.c b/Build/source/texk/dvipdfm-x/pdfobj.c index 406ab103c6c..bb038f900e4 100644 --- a/Build/source/texk/dvipdfm-x/pdfobj.c +++ b/Build/source/texk/dvipdfm-x/pdfobj.c @@ -1064,7 +1064,8 @@ write_name (pdf_name *name, FILE *file) */ #ifndef is_delim /* Avoid '{' and '}' for PostScript compatibility? */ -#define is_delim(c) ((c) == '(' || (c) == '/' || \ +#define is_delim(c) ((c) == '(' || (c) == ')' || \ + (c) == '/' || \ (c) == '<' || (c) == '>' || \ (c) == '[' || (c) == ']' || \ (c) == '{' || (c) == '}' || \ diff --git a/Build/source/texk/dvipdfm-x/pdfparse.c b/Build/source/texk/dvipdfm-x/pdfparse.c index b29dd64da74..f4d63cebed3 100644 --- a/Build/source/texk/dvipdfm-x/pdfparse.c +++ b/Build/source/texk/dvipdfm-x/pdfparse.c @@ -53,7 +53,8 @@ #define is_space(c) ((c) == ' ' || (c) == '\t' || (c) == '\f' || \ (c) == '\r' || (c) == '\n' || (c) == '\0') -#define is_delim(c) ((c) == '(' || (c) == '/' || \ +#define is_delim(c) ((c) == '(' || (c) == ')' || \ + (c) == '/' || \ (c) == '<' || (c) == '>' || \ (c) == '[' || (c) == ']' || \ (c) == '%') -- cgit v1.2.3