🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
1 messages
1 total messages Started by Hans Galema Thu, 02 Feb 2006 13:13
uudecoding end characters
#815
Author: Hans Galema
Date: Thu, 02 Feb 2006 13:13
40 lines
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads