This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dmalcolm
Recipients belopolsky, dmalcolm, docs@python, eric.araujo, terry.reedy, vstinner
Date 2010-12-08.22:08:28
SpamBayes Score 0.00014933465
Marked as misclassified No
Message-id <1291846114.47.0.869837071226.issue9738@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2010-12-08 22:08:34dmalcolmsetrecipients: + dmalcolm, terry.reedy, belopolsky, vstinner, eric.araujo, docs@python
2010-12-08 22:08:34dmalcolmsetmessageid: <1291846114.47.0.869837071226.issue9738@psf.upfronthosting.co.za>
2010-12-08 22:08:28dmalcolmlinkissue9738 messages
2010-12-08 22:08:28dmalcolmcreate