Hide Forgot
The following is an example face two-line file: 2tQjSw>|IA680lA7r'G9Y[jfoS>tTPw4-B#mQo_C+{6>^DWZP`o.h<N!-!iBER@5!"`:9^t ~MyeXP43[]t)W-sTm)TibB_c4=**35T?X(,6,POUlqae[Aq$"zn4hN{{w@(=rYp\i=\wUyhL Running it as this uncompface example.face | ikon2xbm > example.xmb gives an error: icontopbm: error 4 scanning bits item pbmtoxbm: EOF / read error reading magic number The error is ``cured'' by adding a page-width directive of -w55 to the pr command in ikon2xbm: *** ikon2xbm.orig Fri May 1 03:19:12 1998 --- ikon2xbm Tue Jun 16 19:30:42 1998 *************** *** 28,34 **** dim=`wc -l < $tmp | awk '{ print 4 * sqrt($1) }'` ! pr -l1 -t -8 -s, < $tmp | (cat << EOF /* Format_version=1, Width=$dim, Height=$dim, Depth=1, Valid_bits_per_item=16 */ --- 28,34 ---- dim=`wc -l < $tmp | awk '{ print 4 * sqrt($1) }'` ! pr -w55 -l1 -t -8 -s, < $tmp | (cat << EOF /* Format_version=1, Width=$dim, Height=$dim, Depth=1, Valid_bits_per_item=16 */
That 55 looks random. How do you know that is always gives the right number of rows/columns and never hurts the output?
It looks like the -w55 simply removes exess space, so we should apply the patch. Thanks!
Fixed in faces-1.6.1-17. Thanks for the patch.