Message81992
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? |
|
Date |
User |
Action |
Args |
2009-02-14 05:39:45 | ocean-city | unlink | issue5249 messages |
2009-02-14 04:29:34 | ocean-city | set | recipients:
+ ocean-city, loewis, kevinwatters |
2009-02-14 04:29:34 | ocean-city | set | messageid: <1234585774.11.0.722010212207.issue5249@psf.upfronthosting.co.za> |
2009-02-14 04:29:32 | ocean-city | link | issue5249 messages |
2009-02-14 04:29:31 | ocean-city | create | |
|