Package: printer-driver-cups-pdf Version: 3.0.1-5 Severity: normal Dear Maintainer,
using the cups-pdf printer with a short document title (< 32 chars) results in faulty generated filename. This don't affect titles >= 32 chars. example: lp -d PDF -t short INPUT.pdf result: a generated PDF file named "short__rtin_PDF.pdf" (in this case, file name seems to be the target path (/home/martin/PDF) with first characters replaced by the title in some magically appeared brackets) expected: a generated PDF file named "short.pdf" in /home/martin/PDF/ some logging: [DEBUG] now extracting postscript code [DEBUG] found title in ps code: (short) rtin/PDF Mon Nov 5 16:49:30 2018 [DEBUG] found end of postscript code: %%EOF [DEBUG] all data written to spoolfile: /var/spool/cups-pdf/SPOOL/cups2pdf-10959 [DEBUG] trying to use PS title: (short) rtin/PDF [STATUS] ***Experimental Option: DecodeHexStrings [DEBUG] checking for hex strings: (short) rtin/PDF [DEBUG] not a hex string, has no start marker: (short) rtin/PDF [DEBUG] calling alternate_replace_string [DEBUG] removing alternate special characters from title: (short) rtin/PDF [DEBUG] removing leading _ from title: _short__rtin_PDF [DEBUG] title successfully retrieved: short__rtin_PDF [DEBUG] input data read from stdin [DEBUG] output filename created: /home/martin/PDF/short__rtin_PDF.pdf [DEBUG] ghostscript commandline built: /usr/bin/gs -q -dCompatibilityLevel=1.2 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="/home/martin/PDF/short__rtin_PDF.pdf" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f /var/spool/cups-pdf/SPOOL/cups2pdf-10959 -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.18.0-2-amd64 (SMP w/8 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages printer-driver-cups-pdf depends on: ii cups 2.2.8-5 ii cups-client 2.2.8-5 ii ghostscript 9.25~dfsg-4 ii libc6 2.27-6 ii libcups2 2.2.8-5 ii libpaper-utils 1.1.24+nmu5 printer-driver-cups-pdf recommends no packages. Versions of packages printer-driver-cups-pdf suggests: ii system-config-printer 1.5.11-3 -- no debconf information