[C++-sig] Re: Some patches to make the "Automatic PyUnicode to 'const char*'" possible, and make __stdcall function bindable

David Abrahams dave at boost-consulting.com
Fri Sep 12 16:58:16 CEST 2003


"Lijun Qin" <qinlj at solidshare.com> writes:

> Hi,
>
> I have some patches to make the "Automatic PyUnicode to 'const char*'"
> possible (please see
> http://mail.python.org/pipermail/c++-sig/2003-August/004997.html for
> details) 


Hi Lijun,

After having done some research into PyUnicode, I see that it
contains an internal buffer for the default decoding of its string.
If you can set the default decoding to utf8 (that's what you're
using, right?) you may find there's an easier solution to your
problem.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list