[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] problem with preconv and

From: G. Branden Robinson
Subject: Re: [Groff] problem with preconv and
Date: Fri, 3 Nov 2017 23:56:26 -0400
User-agent: NeoMutt/20170113 (1.7.2)

Hi Ralph!

At 2017-11-02T12:04:43+0000, Ralph Corderoy wrote:
> Use `strace -fe execve' to spot the preconv invocation.  Use that
> directly to see if the error can still be generated.  Add preconv's -d
> option for debug.  Is GROFF_ENCODING set anywhere in the environment?
> Do the bytes at the start of look reasonable?  Does it
> contain any coding tags picked up by preconv?  Hopefully, the -d option
> will show that.

Thanks for your tips.

Here's what I found:

execve(".../preconv", ["preconv", "-", "contrib/mom/examples/"], [/* 
68 vars */

Due to the "-" argument, I think pdfmom is running preconv in a
pipeline.  But that may not be important as I can reproduce the problem
without that argument.

$ ./preconv contrib/mom/examples/
./preconv: encoding `' not supported, not a portable encoding

$ ./preconv -d contrib/mom/examples/
default encoding: `UTF-8'
file `contrib/mom/examples/':
  no encoding tag
  len: 21946
  uchardet read: 21946 bytes
./preconv: encoding `' not supported, not a portable encoding

So, nope, no encoding tag.  GROFF_ENCODING is not set in my environment.


$ file contrib/mom/examples/
contrib/mom/examples/ troff or preprocessor input, ASCII text

...and it's not lying.  Every byte in the file is in the range

$ ./preconv -eascii contrib/mom/examples/ as expected, and passes the file through on stdout.


Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]