Artifacts Associated With Ticket 2152292
Ticket change [607d4e4967] (rid 116010) by dkf on 2008-10-07 22:40:06:
- assignee initialized to: "patthoyts"
- cmimetype initialized to: "text/plain"
- comment initialized to:
According to http://en.wikipedia.org/wiki/Uuencode we do uuencoding wrong. In particular (ignoring the header and footer) uuencoding *always* uses a line length of 61 (encoding 45 bytes) with a length character preceding (mostly an 'M' for 45 bytes). Wrap char is always \n (of course). The data is finished off with a line containing zero characters. And a backtick/grave accent is often substituted for space so things don't get mangled. I'd be perfectly happy at leaving the header/footer processing off. ;-)
- foundin initialized to: "obsolete: 8.6a3"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dkf"
- subsystem initialized to: "12. ByteArray Object"
- title initialized to: "uuencode encoding wrong"
- type initialized to: "Bug"
Ticket change [7c6ea2ca44] (rid 133814) by dkf on 2013-09-10 18:59:40:
- closer changed to: "nobody"
- comment changed to:
According to the <a href="http://en.wikipedia.org/wiki/Uuencode">Wikipedia page on Uuencode</a> we do uuencoding wrong. In particular (ignoring the header and footer) uuencoding <i>always</i> uses a line length of 61 (encoding 45 bytes) with a length character preceding (mostly an '<tt>M</tt>' for 45 bytes). Wrap char is always <tt>\n</tt> (of course). The data is finished off with a line containing zero characters. And a backtick/grave accent (<tt>`</tt>) is often substituted for space so things don't get mangled. <p> I'd be perfectly happy at leaving the header/footer processing off. ;-)
- login: "dkf"
- mimetype: "text/plain"
- severity changed to: "Minor"
Ticket change [4c229209c9] (rid 133831) by dkf on 2013-09-12 14:46:58:
- comment changed to:
According to http://en.wikipedia.org/wiki/Uuencode we do uuencoding wrong. In particular (ignoring the header and footer) uuencoding always uses a line length of 61 (encoding 45 bytes as 60 bytes with a length character preceding, typically an 'M' for 45 bytes). Wrap char is always \n (of course). The data is finished off with a line containing zero characters. And a backtick/grave accent (`) is often substituted for space so things don't get mangled. I'd be perfectly happy at leaving the header/footer processing off. ;-)
- icomment:
Length byte processing is important, and that means that splitting into lines is important.
- login: "dkf"
- mimetype: "text/html"
- comment changed to:
Ticket change [e6b0599940] (rid 133832) by dkf on 2013-09-12 14:48:28:
- icomment:
Bumping prio; without the length byte (and hence line handling) the encoding/unencoding is actually incorrect. Alas.
- login: "dkf"
- mimetype: "text/html"
- priority changed to: "8"
- username: "dkf"
- icomment:
Ticket change [9b1ce24fd1] (rid 133892) by dkf on 2013-09-14 07:09:36:
- icomment:
I've got a fix for the encoding side on this branch: <a href="http://core.tcl.tk/tcl/timeline?r=bug-2152292"><code>bug-2152292</code></a>. It still needs some work so that it also correctly decodes.
- login: "dkf"
- mimetype: "text/html"
- username: "dkf"
- icomment:
Ticket change [7aa813fb7c] (rid 133896) by jan.nijtmans on 2013-09-14 08:56:05:
- icomment:
Added back the -wrapchar option. I don't think it's really useful, but we cannot be sure no-one used it (e.g. it could be set to "\r\n").
- login: "jan.nijtmans"
- mimetype: "text/plain"
- icomment:
Ticket change [e1529edd9f] (rid 133906) by dkf on 2013-09-14 21:22:56:
- icomment:
That's really useless you know? Absolutely <i>no</i> conforming code can use it, and its implementation meant that <i>even the use case you mentioned</i> wouldn't have worked (the old code assumed that it was dealing with a single byte, probably a single non-NUL ASCII byte at that). If there's an option that you cannot touch without making the operation useless, it's best omitted. (Pat assumed that uuencoding was just the same as base64, except with a different encoding alphabet, but that's just not true. I remember because I used to use uuencoding a lot in the early '90s for archive files, and wikipedia backs me up.)<p>There's now a correct decoder done too; it can consume correct data files with only the need for header and footer processing added.<p>There might be cause to have some sort of enforcement of strictness, but that's of pretty low value IMO (being able to use a streaming version would be <i>much</i> more relevant, and also clearly in the realm of New Feature).
- login: "dkf"
- mimetype: "text/html"
- username: "dkf"
- icomment:
Ticket change [13974c90ba] (rid 133907) by dkf on 2013-09-15 06:02:39:
- icomment:
It's not that we couldn't do a <tt>-wrapchar</tt>, but if we did, we might as well allow specifying of the profile of encoding characters to use as well; it's that useless.<p>If it was purely up to me, someone <i>really</i> needing the functionality could use <tt>string map</tt> afterwards. (You're holding the data in memory anyway…)
- login: "dkf"
- mimetype: "text/html"
- username: "dkf"
- icomment:
Ticket change [d64d8a6099] (rid 133915) by jan.nijtmans on 2013-09-15 17:13:09:
- icomment:
I know that -wrapchar is of veeeeeeery limited use, but removing an existing options is not something I would expect in a bug-fix release. That's my main reason for adding it. But I would support removing it in Tcl 9 (or even Tcl 8.7).
- login: "jan.nijtmans"
- mimetype: "text/plain"
- icomment:
Ticket change [7d1b6f1bb3] (rid 133922) by dkf on 2013-09-16 09:06:50:
- icomment:
OK, I can live with it. I've tweaked it to work with bytearrays, as everything else is done that way.
- login: "dkf"
- mimetype: "text/html"
- username: "dkf"
- icomment:
Ticket change [89171882c2] (rid 133925) by jan.nijtmans on 2013-09-16 13:29:09:
- icomment: "Thanks! Implementation looks OK to me."
- login: "jan.nijtmans"
- mimetype: "text/plain"
Ticket change [27208b0112] (rid 133948) by dkf on 2013-09-17 09:25:27:
- closedate changed to: "2456552.89267745"
- closer changed to: "dkf"
- icomment: "Committed to trunk. Thanks for your help, Jan."
- login: "dkf"
- mimetype: "text/html"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"