Message80804
On Thu, Jan 29, 2009 at 5:13 PM, STINNER Victor <[email protected]> wrote:
> Ok, I created a new function PyTokenizer_FromUnicode(). I
> choosed "FromUnicode" because the string is encoded in unicode (as
> UTF-8, even if it's not the wchar_t* type).
How about PyTokenizer_FromUTF8() then?
>
>> The (char *) cast in PyTokenizer_FromString is unneeded.
>
> The cast on the decode_str() result? It was already present in the
> original code. I removed it in my new patch.
No, I was referring to this line:
tok->encoding = (char *)PyMem_MALLOC |
|
| Date |
User |
Action |
Args |
| 2009-01-30 02:00:54 | benjamin.peterson | set | recipients:
+ benjamin.peterson, brett.cannon, sjmachin, amaury.forgeotdarc, vstinner |
| 2009-01-30 02:00:52 | benjamin.peterson | link | issue4626 messages |
| 2009-01-30 02:00:51 | benjamin.peterson | create | |
|