Ghostscript 9.15 gdevpdfm.c bug
- The ghostscript 9.15 generates wrong bookmarks for the Unicode (UTF-16) U+xx08 characters.
One example is that the character U+8a08 was changed to U+8a07 in bookmark. See the PDF image below.
The reason is that the gdevpdfm.c converted all backspace '\b' to '\007', which should be '\010', or 0x08.
- The program can be revised, see
gdevpdfm.c.patch.txt. It is located at ghostscript-9.15/devices/vector/.
- After the revision, the character in the bookmark was displayed correctly. See the PDF image below.
- Click gdevpdfm-bug.tex to see the tex source of the example. It is encoded in EUC-JP.
Yamin Li, CIS, Hosei University, Tokyo, Japan