(a2ps.info)It Says my File is Binary


Next: It Refuses to Change the Font Size Prev: It Prints Junk Up: Why Does ...?
Enter node , (file) or (file)node

10.1.6 Why Does it Say my File is Binary?
-----------------------------------------

     a2ps complains that my file is binary though it is not.

   There are several reasons that can cause a2ps to consider a file is
binary:
   - there are many non printable characters in the file.  Then you need
     to use the option '--print-anyway'.

   - the file is sane, composed of printable characters.  Then it is
     very likely that 'file(1)' said the type of the file is 'data', in
     which case a2ps prefers not to print the file.  Then you can
     either:
        - specify the type of the file, for instance '-Eplain';

        - specify to print in any case, '--print-anyway';

        - remove the annoying rule from the system's 'sheets.map':
               binary: <data*>

        - insert in your own '~/.a2ps/sheets.map' a rule that overrides
          that of the system's 'sheets.map':
               # Load the system's sheets.map
               include(/usr/local/share/a2ps/sheets/sheets.map)

               # Override the rule for files with type 'data' according to file(1)
               plain: <data*>

          But this is not very good, since then this rule is always the
          first tested, which means that any file with type 'data'
          according to 'file(1)' will be printed in 'plain' style, even
          if the file is called 'foo.c'.

        - if your files can be recognized, insert a new rule in a
          'sheets.map', such as
               # file(1) says it's data, but it's pure text
               plain:   /*.txx/


automatically generated by info2www version 1.2.2.9