Article View: borland.public.cppbuilder.internet.web
Article #815uudecoding end characters
From: Hans Galema
Date: Thu, 02 Feb 2006 13:13
Date: Thu, 02 Feb 2006 13:13
40 lines
2659 bytes
2659 bytes
Making an uudecoder I can decode everything but I have problems
with the last fill characters.
For base64 a fillcharacter '=' is defined.
<RFC 1421 Privacy Enhancement for Electronic Mail February 1993>
Special processing is performed if fewer than 24 bits are available
in an input group at the end of a message. A full encoding quantum
is always completed at the end of a message. When fewer than 24
input bits are available in an input group, zero bits are added (on
the right) to form an integral number of 6-bit groups. Output
character positions which are not required to represent actual input
data are set to the character "=".
</RFC>
I see no such for uuencode.
What I know until now:
The uuencode algorithm is the same as for base64, only
- the encoding table is different
- an M is added at the beginning of each line.
- the M is not added for the last line(s)
<uuencoded example>
M4$L#!!0``@`(`.AI,C2K1E[3R`8``$",```5````0VAA<G-?57!P97)?,S)X
M,S(N8FUP[9U1DN0T#(8%53SQX"I.P2DHBG=NQB$Y@FX@NBW]DBRGFX%E=JE8
MF9WIWL2)/T^U%/V*[/GM]U__H+G]\OC^^?GF!Z(_'R_?/;Z>V_>/XS_]J-_8
...... // omitted
MS7=O/L29[^,#S47:,<*=_X*P\.61:_(QQ0>\\AE+&BTUW\WY_'-8]1%R0.XS
M:>DI8E`O^8]:B@N^J*^X^+.RY3GWC&%S+4;SW9:/Z"]02P$"%``4``(`"`#H
M:3(TJT9>T\@&``!`C```%0```````````"``````````0VAA<G-?57!P97)?
?,S)X,S(N8FUP4$L%!@`````!``$`0P```/L&````````
`
</uuencoded>
The question is how to decode the end as now my resulting file
is two bytes larger then it should be. I cannot find this
information in a RFC yet.
Hans.
Technical Details
Message-ID:
<43e2055d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!feed20.multikabel.net!multikabel.net!feed10.multikabel.net!feeder3.cambrium.nl!feed.tweaknews.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: feeec,aca6b67040edc3bf,start X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 02 Feb 2006 14:13:35 +0100 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.web Subject: uudecoding end characters Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 145.98.201.248 Message-ID: <43e2055d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1138885981 145.98.201.248 (2 Feb 2006 05:13:01 -0700) Lines: 40 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!feed20.multikabel.net!multikabel.net!feed10.multikabel.net!feeder3.cambrium.nl!feed.tweaknews.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail