Alexander Belopolsky <belopol...@users.sourceforge.net> 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;

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9738>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to