[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] SIP: unicode to wchar_t* in C modules
From: "Giovanni Bajo" <rasky () develer ! com>
Date: 2006-03-30 7:56:20
Message-ID: 0a7401c653cf$6e627600$f44c2597 () bagio
[Download RAW message or body]
Phil Thompson <phil@riverbankcomputing.co.uk> 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic