Re: unicode, C++, python 2.2

2005-09-11 Thread Martin v. Löwis
Trond Eivind Glomsrød wrote: I am currently writing a python interface to a C++ library. Some of the functions in this library take unicode strings (UTF-8, mostly) as arguments. However, when getting these data I run into problem on python 2.2 (RHEL3) - while the data is all nice UCS4 in

Re: unicode, C++, python 2.2

2005-09-09 Thread jepler
Python comes in two flavors. In one, sys.maxunicode is 65535 and Py_UNICODE is a 16-bit type, and in the other, sys.maxunicode is 1114111 and Py_UNICODE is a 32-bit type. This is selected at compile time, and RedHat has chosen in some versions to compile for sys.maxunicode == 1114111. By using