On Thu, Feb 23, 2006 at 11:20:02AM -0500, Jeremy Huntwork wrote: > >If the text is not US-ASCII and the content-transfer-encoding is > >quoted-printable, all non-ASCII bytes are converted to the "=XY" > >notation, where X and Y are hex digits. ASCII pats of the message are > >readable with vim this way, but non-ASCII requires Mutt. If viewability > >with vim is an absolute requirement, use the "8bit" > >content-transfer-encoding. > > Looking through the python code, it appears I can set the variable > [mime_encoding] to be either 'base64', 'quoted-printable', or 'none'. > 'base64' is assumed unless you specify something else. 'none' will be > regarded as ASCII only, and if the script encounters any non-ASCII > characters, it will bail. > > I'm not sure how likely it is to encounter non-ASCII chars. Perhaps if > someone includes them in their comments? What's the best thing to do here?
IMO, use quoted-printable; here's why: 1) The vast majority of characters in bug reports will be 7-bit ASCII. Even if we do allow other character sets in the submission form (which AFAIK we do), most of the characters that get typed in will be valid 7-bit ASCII (English letters and Arabic numerals). 2) 'Base64' is totally unreadable unless you have a mail client available, or you know how to decode base64. Yes, most people have a mail client available most of the time, but if there's another option that doesn't break something else, but which does still allow most of the mail to be read without a mail client, I'd go with that other option. 3) 'None' will die if the user puts in a non-ASCII character. IMO, that's not good. Whether the users will try it or not is another question, though. (Additionally: What if we start adding bugs regarding the UTF-8 support, after it gets officially put into the book? Those bug reports will almost assuredly require more than 7-bit ASCII, at least for some characters. More than zero. OTOH, we can change this setting later, too.) 3) 'Quoted-printable' will avoid failing in the case of a non-ASCII character. It'll still be mostly readable without a mail client, though (because most characters are 7-bit ASCII) -- IMO, that's the best of both worlds. I would also say that viewability with Vim is "nice but not absolutely required"; that's why I wouldn't recommend hacking Trac to support 8bit. (I use Vim once in a while instead of Mutt, too. But not often, because I do have Mutt installed.)
pgpPgKfm2ObRT.pgp
Description: PGP signature
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page