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 alexandre.vassalotti
Recipients alexandre.vassalotti, belopolsky, gvanrossum, lemburg
Date 2008-05-03.17:49:58
SpamBayes Score 0.023164222
Marked as misclassified No
Message-id <1209836999.53.0.118064382099.issue1950@psf.upfronthosting.co.za>
In-reply-to
Content
Alexander Belopolsky wrote:
> The patch looks good.  Just a question: I thought the strings returned
> by PyUnicode_AsStringAndSize are 0-terminated, while your patch at
> several places attempts to explicitly 0-terminate a copy of such string.  
> Are you sure this is necessary?

I wasn't sure if the strings returned by PyUnicode_AsStringAndSize were
0-terminated, so I didn't take any chance and explicitly terminated
them. But I just verified myself and they are indeed 0-terminated. So, I
modified the patch in consequence.
History
Date User Action Args
2008-05-03 17:49:59alexandre.vassalottisetspambayes_score: 0.0231642 -> 0.023164222
recipients: + alexandre.vassalotti, lemburg, gvanrossum, belopolsky
2008-05-03 17:49:59alexandre.vassalottisetspambayes_score: 0.0231642 -> 0.0231642
messageid: <1209836999.53.0.118064382099.issue1950@psf.upfronthosting.co.za>
2008-05-03 17:49:58alexandre.vassalottilinkissue1950 messages
2008-05-03 17:49:58alexandre.vassalotticreate