Hirokazu Yamamoto <ocean-c...@m2.ccsnet.ne.jp> added the comment:

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?

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5249>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to