[New-bugs-announce] [issue29764] PyUnicode_Decode with encoding utf8 crashes

Alexey Trenikhin report at bugs.python.org
Wed Mar 8 19:46:30 EST 2017


New submission from Alexey Trenikhin:

#include <Python.h>
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.melotti, haypo
priority: normal
severity: normal
status: open
title: PyUnicode_Decode with encoding utf8 crashes
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file46713/test.c

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29764>
_______________________________________


More information about the New-bugs-announce mailing list