I have two LPD errors 1. I see two characters being replaced by strings on the hard copy (the {â} below is an {a^}). This happens on the first page and not on following pages. instead of " I get: â\200\234 (235 for trailing ") instead of ' I get: â\200\231 2. All non-english characters get garbled, on all pages. These are characters like ç, ö, etc. With these two seemingly separate errors, I can't figure out whether this is an lpr or enscript error. * The file being sent through lpr is a simple text file. * /etc/printcap entry for default printer is: lp|hp2100|HP 2100TN:\ :rm=192.168.1.9:rp=raw:\ :if=/usr/local/libexec/filters/psif:\ :lf=/var/log/lpd-filter-errs:\ :sd=/var/spool/lpd/hp2100:\ :mx=0:sh: * /var/log/lpd-filter-errs shows: [ 4 pages * 1 copy ] left in - \ 59 lines were wrapped \ 7 non-printable characters * filetrs/psif is also very basic: #!/bin/sh IFS="" read -r first_line first_two_chars=`expr "$first_line" : '\(..\)'` case "$first_two_chars" in %!) # %! : PostScript job, print it. echo "$first_line" && cat && exit 0 exit 2 ;; *) # otherwise, format with enscript ( echo "$first_line"; cat ) | /usr/local/bin/enscript -o - && exit 0 exit 2 ;; esac ----- FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS -- View this message in context: http://freebsd.1045724.n5.nabble.com/printing-text-file-with-LPD-non-printable-characters-tp5954561.html Sent from the freebsd-current mailing list archive at Nabble.com.Received on Sun Oct 05 2014 - 16:01:29 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:52 UTC