
Dec. 8, 2010
10:08 p.m.
Dave Malcolm <dmalcolm@redhat.com> added the comment: A (probably crazy) idea that just occurred to me: typedef char utf8_bytes; typedef char iso8859_1_bytes; typedef char fsenc_bytes; then specify the encoding in the type signature of the API e.g.: - int PyRun_SimpleFile(FILE *fp, const char *filename) + int PyRun_SimpleFile(FILE *fp, const fsenc_bytes *filename) ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue9738> _______________________________________