[issue9738] Document the encoding of functions bytes arguments of the C API
Dave Malcolm
report at bugs.python.org
Wed Dec 8 23:08:34 CET 2010
Dave Malcolm <dmalcolm at 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 at bugs.python.org>
<http://bugs.python.org/issue9738>
_______________________________________
More information about the Python-bugs-list
mailing list