Arnt Gulbrandsen
About meAbout this blog

Printing RFCs

RFCs now use unicode rather than ASCII. I've been printing RFCs to read them for decades, when I did it last week the result didn't look pretty.

I found a new tool, u2ps, that almost does what a2ps and enscript do not. I had to make one small change, to make it interpret the form feeds in RFCs, then it worked exactly as I needed.

The script I use wraps u2ps to print RFCs double-sided, two RFC pages per A4 page (four per sheet). At heart it's like this short unix command:

u2ps -k -M A4 -s 11.5 --header-right=''
| psnup -2 2>/dev/null
| lpr -o sides=two-sided-long-edge