|
Re: Re: Error on linux: msg#00006python.ctypes
Michele Petrazzo <michele.petrazzo@xxxxxxxxx> writes: > 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? No, other stuff must be fixed as well, because it is hardcoded to be only availbale on Windows. Later, Thomas ------------------------------------------------------- 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: Re: Error on linux: 00006, Andrew MacIntyre |
|---|---|
| Next by Date: | Re: Re: Error on linux: 00006, Thomas Heller |
| Previous by Thread: | Re: Re: Error on linuxi: 00006, Michele Petrazzo |
| Next by Thread: | RE: Re: Error on linux: 00006, Andrew MacIntyre |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |