Article View: news.software.readers
Article #70467Re: [slrn] file corrupting uudecode bug fixed
From: Thomas Schultz
Date: Sat, 13 Jan 2001 23:46
Date: Sat, 13 Jan 2001 23:46
35 lines
2470 bytes
2470 bytes
On 11 January 2001 at 19:35 GMT, Sylvan Butler wrote:
> slrn 0.9.6.3 (and I believe other versions though I have not
> specifically checked) may corrupt the file they are uudecoding. slrn
> skips lines which contain a space.
This behaviour was indeed introduced in slrn 0.9.6.3.
> But since space is equivalent to a backtick ('`') they need to be
> allowed.
This is how it should be according to the specifications I found by a
quick google search [1] and how uudecode (version 4.2c; part of GNU
sharutils) handles it, so I wonder why it was changed in slrn's
uudecode routine lately. Does anyone have information about this?
[...]
> /* This may still be a bogus line, e.g., a header. */
> - if (NULL != slrn_strchr (buf, ' '))
> + /* but some valid uuencodings have spaces! (' '=='`') */
> + if (0 == InUUE && NULL != slrn_strchr (buf, ' '))
> continue;
When control reaches this point of the code, InUUE is always 1, so
your patch has the same effect as simply returning to the code used in
slrn 0.9.6.2.
[1] http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?uuencode
http://www.opennc.org/onlinepubs/7908799/xcu/uuencode.html
--
Thomas Schultz <tststs@gmx.de> * Recent news from http://slrn.sourceforge.net/
-> [2000-12-21] slrn 0.9.6.3pl3 released
-> [2000-10-22] Matthias Friedrich joins the team
-> [2000-09-27] Initial release of the slrn reference manual
Technical Details
Message-ID:
<slrn961q74.av.tststs@starflower.tststs.ddns.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!newsfeed.wirehub.nl!news.maxwell.syr.edu!news.netcologne.de!newsfeed01.sul.t-online.de!t-online.de!do.de.uu.net!innmaster.de.uu.net!news.cityweb.de!tststs.ddns.org!not-for-mailReferences:
<slrn95s2p2.31q.Znospam+noZs_0101@hpb13799Z.Zboi.hpZ.com.invalid>Show Full Headers
Complete Article Headers
Message-ID: <slrn961q74.av.tststs@starflower.tststs.ddns.org> Subject: Re: [slrn] file corrupting uudecode bug fixed Date: Sat, 13 Jan 2001 23:46:44 +0000 From: tststs@gmx.de (Thomas Schultz) References: <slrn95s2p2.31q.Znospam+noZs_0101@hpb13799Z.Zboi.hpZ.com.invalid> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!newsfeed.wirehub.nl!news.maxwell.syr.edu!news.netcologne.de!newsfeed01.sul.t-online.de!t-online.de!do.de.uu.net!innmaster.de.uu.net!news.cityweb.de!tststs.ddns.org!not-for-mail Newsgroups: news.software.readers Organization: Pinguin online. Lines: 34 NNTP-Posting-Host: 149.225.119.123 NNTP-Posting-Date: 14 Jan 2001 01:08:37 GMT X-Complaints-To: abuse@cityweb.de X-Server-Date: 14 Jan 2001 00:27:47 GMT User-Agent: slrn/0.9.6.3pl4 (Linux)