 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Hans Galema Guest
|
Posted: Thu Feb 02, 2006 6:13 pm Post subject: uudecoding end characters |
|
|
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. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|