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, brett.cannon, christian.heimes, gvanrossum
Date 2007-10-25.10:47:35
SpamBayes Score 0.0007806798
Marked as misclassified No
Message-id <1193309256.58.0.864514607952.issue1302@psf.upfronthosting.co.za>
In-reply-to
Content
Why should I use (sizeof(lower)-1)? Do you mean
PyMem_Malloc(strlen(encoding) + 1)?

Changes since last patch:
* added #include "bytes_methods.h" in unicodeobject.c
* fix all is* to use the macros from bytes_methods.h
* use malloc/free the lower version instead of using a fixed buffer
* replace '_' with '-' in encoding

I still think that a fixed buffer of 12 chars (strlen(iso-8859-1) + 1 +
\0) is sufficient and faster.
* also check for iso-8859-1
Files
File name Uploaded
py3k_profile_fix3.patch christian.heimes, 2007-10-25.10:47:35
History
Date User Action Args
2007-10-25 10:47:37christian.heimessetspambayes_score: 0.00078068 -> 0.0007806798
recipients: + christian.heimes, gvanrossum, brett.cannon, alexandre.vassalotti
2007-10-25 10:47:36christian.heimessetspambayes_score: 0.00078068 -> 0.00078068
messageid: <1193309256.58.0.864514607952.issue1302@psf.upfronthosting.co.za>
2007-10-25 10:47:36christian.heimeslinkissue1302 messages
2007-10-25 10:47:35christian.heimescreate