Phil Thompson <[EMAIL PROTECTED]> wrote:

>>
>> I'm having some trouble mapping a unicode Python variable to a C
>> wchar_t* . I reused a MappedType directive that works flawlessy for a
>> C++ module.
>
> %MappedTypes are for mapping classes and structs, not for basic
> types. If it works in a C++ context then it's down to luck.
>
> I'm happy to add support for wchar_t in C++ modules in a future
> version of SIP (because it is a basic type in C++ - something I
> hadn't realised until recently). I will only add support for it in C
> modules if it comes for free with the C++ support.


Notice that wchar_t is also a basic type as of ISO C99, and it's been supported
in C compilers as extension far longer before C99 was standardized (which is,
uh, 7 years ago).

Giovanni Bajo

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to