|
Re: Re: Error on linux: msg#00004python.ctypes
Thomas Heller wrote: > Michele Petrazzo <michele.petrazzo@xxxxxxxxx> writes: > Ok, it seems I missed to put the create_unicode_buffer inside an if: > > if os.name == "nt": > I see this in __init__.py file > The deeper issue is that the unicode stuff in ctypes is only compiled in > when the Python header files define the HAVE_USABLE_WCHAR_T symbol. Of > the systems I build and test on, only Windows defines this. > > I'm not really sure that this is really the right thing to do, > maybe this should be sufficient: > > #if Py_UNICODE_SIZE == 2 I'm not a c developer, (also I'm not a python developer), so where I put this define? In python source? In ctypes source? And after, I can use create_unicode_buffer on linux? > Thomas > Thanks, Michele ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: accessing classes in a C++ DLL: 00004, Thomas Heller |
|---|---|
| Next by Date: | RE: Re: Error on linux: 00004, Andrew MacIntyre |
| Previous by Thread: | Re: Error on linuxi: 00004, Thomas Heller |
| Next by Thread: | Re: Re: Error on linux: 00004, Thomas Heller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |