Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Mar 1997 23:26:17 -0800 (PST)
From:      asami@vader.cs.berkeley.edu (Satoshi Asami)
To:        wosch@freebsd.org
Cc:        current@freebsd.org, mita@jp.FreeBSD.org
Subject:   -current uudecode can't grok one of japanese/vfxdvi's distfiles
Message-ID:  <199703250726.XAA01567@silvia.HIP.Berkeley.EDU>

next in thread | raw e-mail | index | archive | help
The following command:

===
zcat /usr/ports/distfiles/xdvi/950923.02.Z | uudecode
===

works fine on a 2.2R system but dies with:

===
uudecode:
        input file: stdin
        encoded file: xdvi-pl17+markpage+toc+printdvi+paper.patch.gz
        character out of range: [33-96]
===

on a -current (from yesterday) system.

Looking at the uudecode source, this change seems to be the difference.

===
revision 1.5
date: 1997/02/18 17:49:43;  author: wosch;  state: Exp;  lines: +32 -1
Better check for detecting header line. A header line must match
"begin [0-7]* *". Now `begin with, ' is not a header line.

Do a boundary check for body characters. Characters less than 33 or
greater than 96 are out of range. If characters are out of range
uudecode print a error message and die.
===

Is this check really necessary?  This file used to decode fine with
the old decoder.  Besides, I can't figure out for the life of myself
which character it's barfing on.

===
>> tr ' -_\n' ' ' <950923.02 | od -c
0000000    b   e   g   i   n                       x   d   v   i       p
0000020    l               m   a   r   k   p   a   g   e       t   o   c
0000040        p   r   i   n   t   d   v   i       p   a   p   e   r    
0000060    p   a   t   c   h       g   z                                
0000100                                                                 
*
0141300                                                                e
0141320    n   d                                                        
0141323
===

Seems like everything between the "begin" line and "end" are in range....

Satoshi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703250726.XAA01567>