Re: a2ps error; printing utf8 to a postscipt printer

2023-10-26 Thread Antoine Jacoutot
On Tue, Oct 24, 2023 at 09:10:05AM +0200, Antoine Jacoutot wrote:
> On Mon, Oct 23, 2023 at 05:22:37PM +0200, rsyk...@disroot.org wrote:
> > Dear list,
> > 
> > 
> > after upgrading to OpenBSD 7.4 (as far as I can tell),
> > a2ps program stopped working:
> > 
> > ;a2ps /home/ruda/mnt/tarkil/SIMUL/acceptance/accept1detE0.ijs  
> > [/home/ruda/mnt/tarkil/SIMUL/acceptance/accept1detE0.ijs (plain): 2 pages 
> > on 1 sheet]
> > Usage: a2ps-lpr-wrapper [-d printer] FILE...
> > a2ps: received SIGPIPE
> > 
> > It seems to me that a2ps-lpr-wrapper expects a FILE argument,
> > while a2ps (which invokes the wrapper?) does not supply one...
> > 
> > Has anybody else had this issue?
> > Thanks for comments.
> > 
> > Loosely related: What program do you use to print utf8
> > encoded text file to a postscipt printer? (Neither a2ps, nor
> > enscript does it. At this moment I either remove any
> > diacritics with 'recode -f utf8..flat ...', or open the
> > file in gedit and print from there. I heard there is
> > 'paps' and 'cedilla' programs, but neither is in ports
> > and I failed to compile the former as cloned from github.)
> 
> See https://savannah.gnu.org/bugs/?64047
> I will cook up a patch.

Fixed on stable and current; thanks.

-- 
Antoine



Re: a2ps error; printing utf8 to a postscipt printer

2023-10-24 Thread rsykora
Jan Stary  wrote:
> On Oct 23 17:22:37, rsyk...@disroot.org wrote:
> > 
> > Loosely related: What program do you use to print utf8
> > encoded text file to a postscipt printer? (Neither a2ps, nor
> > enscript does it.
> 
> u2ps is in ports.

Great. It seems to work for me.

Thanks.

Ruda



Re: a2ps error; printing utf8 to a postscipt printer

2023-10-24 Thread rsykora
Antoine Jacoutot  wrote:
> On Mon, Oct 23, 2023 at 05:22:37PM +0200, rsyk...@disroot.org wrote:
> > Dear list,
> > 
> > 
> > after upgrading to OpenBSD 7.4 (as far as I can tell),
> > a2ps program stopped working:
> > 
> > ;a2ps /home/ruda/mnt/tarkil/SIMUL/acceptance/accept1detE0.ijs  
> > [/home/ruda/mnt/tarkil/SIMUL/acceptance/accept1detE0.ijs (plain): 2 pages 
> > on 1 sheet]
> > Usage: a2ps-lpr-wrapper [-d printer] FILE...
> > a2ps: received SIGPIPE
> > 
> > It seems to me that a2ps-lpr-wrapper expects a FILE argument,
> > while a2ps (which invokes the wrapper?) does not supply one...
> > 
> > Has anybody else had this issue?
> > Thanks for comments.
> > 
> > Loosely related: What program do you use to print utf8
> > encoded text file to a postscipt printer? (Neither a2ps, nor
> > enscript does it. At this moment I either remove any
> > diacritics with 'recode -f utf8..flat ...', or open the
> > file in gedit and print from there. I heard there is
> > 'paps' and 'cedilla' programs, but neither is in ports
> > and I failed to compile the former as cloned from github.)
> 
> See https://savannah.gnu.org/bugs/?64047
> I will cook up a patch.

Yes, that's it. Thanks!
I confirm that applying of the patch there worked form me.
(It's essentially a removal of one line in a2ps-lpr-wrappe.)

Ruda




Re: a2ps error; printing utf8 to a postscipt printer

2023-10-24 Thread Antoine Jacoutot
On Mon, Oct 23, 2023 at 05:22:37PM +0200, rsyk...@disroot.org wrote:
> Dear list,
> 
> 
> after upgrading to OpenBSD 7.4 (as far as I can tell),
> a2ps program stopped working:
> 
> ;a2ps /home/ruda/mnt/tarkil/SIMUL/acceptance/accept1detE0.ijs  
> [/home/ruda/mnt/tarkil/SIMUL/acceptance/accept1detE0.ijs (plain): 2 pages on 
> 1 sheet]
> Usage: a2ps-lpr-wrapper [-d printer] FILE...
> a2ps: received SIGPIPE
> 
> It seems to me that a2ps-lpr-wrapper expects a FILE argument,
> while a2ps (which invokes the wrapper?) does not supply one...
> 
> Has anybody else had this issue?
> Thanks for comments.
> 
> Loosely related: What program do you use to print utf8
> encoded text file to a postscipt printer? (Neither a2ps, nor
> enscript does it. At this moment I either remove any
> diacritics with 'recode -f utf8..flat ...', or open the
> file in gedit and print from there. I heard there is
> 'paps' and 'cedilla' programs, but neither is in ports
> and I failed to compile the former as cloned from github.)

See https://savannah.gnu.org/bugs/?64047
I will cook up a patch.

-- 
Antoine



Re: a2ps error; printing utf8 to a postscipt printer

2023-10-23 Thread Jan Stary
On Oct 23 17:22:37, rsyk...@disroot.org wrote:
> after upgrading to OpenBSD 7.4 (as far as I can tell),
> a2ps program stopped working:

Do you mean specificaly the upgrade of the base system,
or the ugraded a2ps package? I doubt the _system_ upgrade
itself broke a2ps ...

> ;a2ps /home/ruda/mnt/tarkil/SIMUL/acceptance/accept1detE0.ijs  

What an ijs file and how does a2ps know it's a plain text file?
Is that the default?

> [/home/ruda/mnt/tarkil/SIMUL/acceptance/accept1detE0.ijs (plain): 2 pages on 
> 1 sheet]
> Usage: a2ps-lpr-wrapper [-d printer] FILE...
> a2ps: received SIGPIPE

Who is the caller of a2ps-lpr-wrapper?
Does a2ps itselt call it? Or some script you have?
What your /etc/printcap ?

> It seems to me that a2ps-lpr-wrapper expects a FILE argument,
> while a2ps (which invokes the wrapper?) does not supply one...
> 
> Has anybody else had this issue?
> Thanks for comments.
> 
> Loosely related: What program do you use to print utf8
> encoded text file to a postscipt printer? (Neither a2ps, nor
> enscript does it.

u2ps is in ports.

> At this moment I either remove any
> diacritics with 'recode -f utf8..flat ...',

Or you can iconv -t to some encoding that a2ps supports.

Jan



a2ps error; printing utf8 to a postscipt printer

2023-10-23 Thread rsykora
Dear list,


after upgrading to OpenBSD 7.4 (as far as I can tell),
a2ps program stopped working:

;a2ps /home/ruda/mnt/tarkil/SIMUL/acceptance/accept1detE0.ijs  
[/home/ruda/mnt/tarkil/SIMUL/acceptance/accept1detE0.ijs (plain): 2 pages on 1 
sheet]
Usage: a2ps-lpr-wrapper [-d printer] FILE...
a2ps: received SIGPIPE

It seems to me that a2ps-lpr-wrapper expects a FILE argument,
while a2ps (which invokes the wrapper?) does not supply one...

Has anybody else had this issue?
Thanks for comments.

Loosely related: What program do you use to print utf8
encoded text file to a postscipt printer? (Neither a2ps, nor
enscript does it. At this moment I either remove any
diacritics with 'recode -f utf8..flat ...', or open the
file in gedit and print from there. I heard there is
'paps' and 'cedilla' programs, but neither is in ports
and I failed to compile the former as cloned from github.)


Ruda