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 ocean-city
Recipients kevinwatters, loewis, ocean-city
Date 2009-02-14.04:29:31
SpamBayes Score 6.733007e-08
Marked as misclassified No
Message-id <1234585774.11.0.722010212207.issue5249@psf.upfronthosting.co.za>
In-reply-to
Content
On VC6, wcsftime simply converts *format* to mbcs string, calls
strftime, and converts result to unicode, so there is no difference
between my patch and wcsftime. (Newer VC's wcsftime might have different
implementation though) Maybe you are concerning about the cost of extra
unicode object creation on non-windows platform? If so, should
    ret = PyUnicode_Decode(outbuf, buflen,
		       TZNAME_ENCODING, NULL);
be changed to PyUnicode_DecodeUTF8?

>with the primary difference being that it uses
>alloca instead of Py_Malloc

outbuf = (char *)PyMem_Malloc(i); should be alloca() on windows?
History
Date User Action Args
2009-02-14 05:39:45ocean-cityunlinkissue5249 messages
2009-02-14 04:29:34ocean-citysetrecipients: + ocean-city, loewis, kevinwatters
2009-02-14 04:29:34ocean-citysetmessageid: <1234585774.11.0.722010212207.issue5249@psf.upfronthosting.co.za>
2009-02-14 04:29:32ocean-citylinkissue5249 messages
2009-02-14 04:29:31ocean-citycreate