Message123655
| 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) |
|