From: William S F. <ws...@fu...> - 2013-08-07 19:37:34
|
On 28/07/13 22:54, James Yonan wrote: > This patch extends the existing support for Python 3 unicode string > conversion to Python 2.x and adds support for UTF-8 strings > being returned from C to Python to be automatically converted > to unicode. > > Specifically: > > 1. Python unicode strings passed to C are converted to UTF-8 > > 2. C strings returned to the Python level are tested to determine > if they are UTF-8. If so, the string is returned to Python as > a unicode string. Great. Would you mind putting together a little test for this? Ideally you would add the patch and test into Github as we need a test for the commit and I don't have much time. See http://www.swig.org/Doc2.0/Extending.html#Extending_test_suite. William |