This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients alexandre.vassalotti, christian.heimes, gvanrossum
Date 2007-10-14.00:57:17
SpamBayes Score 0.0191224
Marked as misclassified No
Message-id <47116966.7040402@cheimes.de>
In-reply-to <1192310346.63.0.723987066167.issue1272@psf.upfronthosting.co.za>
Content
Guido van Rossum wrote:
> - Why copy the default encoding before mangling it?  With a little extra
> care you will only have to copy it once. 

Now I remember why I added the strncpy() call plus encoding[31] = '\0'.
I wanted to make sure that the code doesn't break even if the encoding
name is longer than 31 + 1 chars long. I'm aware that it's very unlikely
but I didn't want to take chances. You are allowed to call me paranoid. *g*

Christian
History
Date User Action Args
2007-10-14 00:57:19christian.heimessetspambayes_score: 0.0191224 -> 0.0191224
recipients: + christian.heimes, gvanrossum, alexandre.vassalotti
2007-10-14 00:57:17christian.heimeslinkissue1272 messages
2007-10-14 00:57:17christian.heimescreate