[issue29764] PyUnicode_Decode with encoding utf8 crashes

2017-03-08 Thread Xiang Zhang
Xiang Zhang added the comment: You need to first call `Py_Initialize()` to initialize the Python interpreter. It is required. -- nosy: +xiang.zhang resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue29764] PyUnicode_Decode with encoding utf8 crashes

2017-03-08 Thread Alexey Trenikhin
New submission from Alexey Trenikhin: #include int main(){ PyUnicode_Decode("abcdef", 4, "utf_8", "ignore"); return 0; } crashes on linux and Windows (but works fine with encoding "utf-8" ) -- components: Unicode files: test.c messages: 289261 nosy: Alexey Trenikhin, ezio.mel