summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-06-23 11:49:49 +0200
committerTor Andersson <tor@ghostscript.com>2010-06-23 11:49:49 +0200
commit09b0921fc59c7b48b1e0c0b9955d183a19ab4a4c (patch)
tree3d292d6cf90126f162cdf74dcb7e8c20545e95ec
parentec800ef7d186188dd0dd7132ef5e7c2fda55a499 (diff)
downloadmupdf-09b0921fc59c7b48b1e0c0b9955d183a19ab4a4c.tar.xz
Treat characters encoded to 0 as '?' when generating unicode values.
-rw-r--r--mupdf/pdf_build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mupdf/pdf_build.c b/mupdf/pdf_build.c
index c6e8c21c..60385a4b 100644
--- a/mupdf/pdf_build.c
+++ b/mupdf/pdf_build.c
@@ -556,7 +556,7 @@ pdf_showglyph(pdf_csi *csi, int cid)
ucsbuf[0] = fontdesc->cidtoucs[cid];
ucslen = 1;
}
- if (ucslen == 0)
+ if (ucslen == 0 || (ucslen == 1 && ucsbuf[0] == 0))
{
ucsbuf[0] = '?';
ucslen = 1;