On Fri, Apr 16, 2004 at 01:53:47PM +0200, Reiner Linnenkohl wrote:
> Hello,
> 
> since ifhp-3.5.16/17 i have the following problem:
> 
> $ file insd2_neu_blade
> insd2_neu_blade: ISO-8859 C++ program text
> 
> $ lpr -Pprinter2  insd2_neu_blade
> $ lpq -llll
> ....
> 
> Filter_status: sending job file at 11:38:42.100
> Filter_status: starting transfer at 11:38:42.100
> Filter_status: file program = '/usr/local/bin/file 
> dfA146insl17.etec.uni-karlsruhe.de' at 11:38:42.100
> Filter_status: started FILE_UTIL- 'file' at 11:38:42.139
> Filter_status: file information = 'iso-8859_c++_program_text' at 
> 11:38:42.144
> Filter_status: initial job type 'iso-8859_c++_program_text' at 11:38:42.145
> Filter_status: decoded job type 'msg' at 11:38:42.145
> Filter_status: job type 'msg', converter 'no_converter' at 11:38:42.145
> Filter_status: converter done, output 154 bytes at 11:38:42.163
> Filter_status: initial job type 'POSTSCRIPT' at 11:38:42.163
> Filter_status: decoded job type 'POSTSCRIPT' at 11:38:42.163
> Filter_status: job type 'POSTSCRIPT' at 11:38:42.163
> Filter_status: transferring 154 bytes at 11:38:42.163
> ....
> 
> The paper comes out with the message" No conversion available for type 
> 'iso-8859_c++_program_text' .
> All other types of documents are printed correctly !
> Until ifhp-3.5.14 do not ocurrir this problem.
> 
> I'm working on Solaris (SunOS 5.9 Generic_112233-11 sun4u sparc 
> SUNW,Sun-Blade-1000) with gcc-3.2.3,
> file-4.09, AFPL Ghostscript 8.00 and LPRng-3.8.26
> 
> Is there anybody who could help,
> Thank's a lot,
> Reiner
> 
> -- 
> Reiner Linnenkohl
> Universit?t Karlsruhe - Nachrichtentechnik
> Systemadministration - Tel.: +49 721 608-6502
> e-mail: [EMAIL PROTECTED]
> 
> 
> -----------------------------------------------------------------------------
> YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
> The address you post from MUST be your subscription address
> 
> If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
> or lprng-digest-requests) with the word 'help' in the body.  For the 
> impatient,
> to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
> with:                           | example:
> subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
> unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]
> 
> If you have major problems,  send email to [EMAIL PROTECTED] with the word
> LPRNGLIST in the SUBJECT line.
> -----------------------------------------------------------------------------


ifhp uses the output of the 'file' program to determine
the file type,  and then looks up the type in a table.

      Filter_status: file information = 'iso-8859_c++_program_text' at 
                                          ^^^^^^^^^^^^^^^^^^^^^^^
If you look in the ifhp.conf file, you will find:

# example conversion program
file_output_match = [
  *postscript*  ps   \%s{ps_converter}
  *pdf*         ps   \%s{pdf2ps_converter}
  *pcl*         pcl  \%s{pcl_converter}
  *pjl*         pjl  \%s{pjl_converter}
  *printer*job*language* pjl
  *ascii*text*  ps  \%s{text_converter}
  *gzip_compressed*  filter  \%s{gzip_decompress}
  *             msg  no_converter
  ]

Note that 'program text' may match some binaries.  From the /usr/share/magic
file,  which is used by the file conversion program:

# text if readable, executable if runnable binary, data if unreadable.

0   string /1\ :pserver:    cvs password text file
0       string          -h-             Software Tools format archive text
10      string          #\ This\ is\ a\ shell\ archive  shell archive text
0       string  @echo\ off      MS-DOS batch file text
0       string  \377WPC\020\000\000\000\022\012\001\001\000\000\000\000 (WP) loadable 
text

... and so forth

I you can add or change this by using:
file_output_match = [
  *postscript*  ps   \%s{ps_converter}
  *pdf*         ps   \%s{pdf2ps_converter}
  *pcl*         pcl  \%s{pcl_converter}
  *pjl*         pjl  \%s{pjl_converter}
  *printer*job*language* pjl
  *ascii*text*  ps  \%s{text_converter}
  *program*text*  ps  \%s{text_converter}
  *gzip_compressed*  filter  \%s{gzip_decompress}
  *             msg  no_converter
  ]

Patrick Powell                 Astart Technologies
[EMAIL PROTECTED]            6741 Convoy Court
Network and System             San Diego, CA 92111
  Consulting                   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to