◐ Shell
clean mode source ↗

Message 81992 - Python tracker

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?