logo       

Re: Re: Error on linux: msg#00006

python.ctypes

Subject: Re: Re: Error on linux

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>
Google Custom Search

News | FAQ | advertise