Package: enscript Version: 1.6.4-7 $ uname -a Linux allegro 2.4.27-3-686 #1 Wed Feb 8 12:40:33 UTC 2006 i686 GNU/Linux
$ ls -l /lib/libc.so.6 lrwxrwxrwx 1 root root 13 Nov 24 15:18 /lib/libc.so.6 -> libc-2.3.2.so BUG : the output text of a PostScript escape is immediately truncated at the point where that text contains a keyword in the language which is being highlighted. Please see the attached bash script. It echoes a single line, containing some PostScript escape text, and runs this thorough 'enscript' using no highlighting, 'C' highlighting, and 'Java' highlighting. The outputs from all three runs should be the same, but they are not. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Joseph Manning / Computer Science / UCC Cork Ireland / [EMAIL PROTECTED] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/bash #=========================================================================# # bash script to demonstrate a bug in enscript 1.6.4-7 ( Debian Sarge ) # # # # BUG : the output text of a PostScript escape is immediately truncated # # at the point where that text contains a keyword in the language # # which is being highlighted # # # # 'plain.ps' / 'c.ps' / 'java.ps' should be identical but are not # #=========================================================================# # Joseph Manning <[EMAIL PROTECTED]> : 2006-Apr-11 # #=========================================================================# echo -e '\000ps{(Keywords: class while) show}' | enscript -e > plain.ps echo -e '\000ps{(Keywords: class while) show}' | enscript -e -Ec > c.ps echo -e '\000ps{(Keywords: class while) show}' | enscript -e -Ejava > java.ps diff3 plain.ps c.ps java.ps rm plain.ps c.ps java.ps