Message123659
> A (probably crazy) idea that just occurred to me:
> typedef char utf8_bytes;
> typedef char iso8859_1_bytes;
> typedef char fsenc_bytes;
I like it! Let's see how far we can get without iso8859_1_bytes, though. (It is likely to be locale_bytes anyways.) There are a few places where we'll need ascii_bytes.
The added benefit is that we can make these typedefs unsigned char and avoid char signness being ambiguous. We will also need to give the typedefs the Py_ prefix.
And an obligatory bikesheding comment: if we typedef char, we should use singular form. Or we can typedef char* Py_utf8_bytes. |
|
Date |
User |
Action |
Args |
2010-12-08 22:55:11 | belopolsky | set | recipients:
+ belopolsky, terry.reedy, vstinner, eric.araujo, dmalcolm, docs@python |
2010-12-08 22:55:11 | belopolsky | set | messageid: <1291848911.44.0.756446519525.issue9738@psf.upfronthosting.co.za> |
2010-12-08 22:55:09 | belopolsky | link | issue9738 messages |
2010-12-08 22:55:09 | belopolsky | create | |
|