summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Reutenauer <arthur.reutenauer@normalesup.org>2015-07-06 16:09:36 +0000
committerArthur Reutenauer <arthur.reutenauer@normalesup.org>2015-07-06 16:09:36 +0000
commite1fed53bada303707115d08fe6f857f6da65adcd (patch)
tree5f99998e82be8a74c2013608d1c1f69457b0df9a
parent747ef1c6ea8e5940e2e43f31d6afe6a12bf42224 (diff)
Escape closing parenthesis in PDF strings; fixes bug 110 in XeTeX’s tracker.
git-svn-id: svn://tug.org/texlive/trunk@37783 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/dvipdfm-x/dpxutil.h3
-rw-r--r--Build/source/texk/dvipdfm-x/pdfobj.c3
-rw-r--r--Build/source/texk/dvipdfm-x/pdfparse.c3
3 files changed, 6 insertions, 3 deletions
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) == '%')