wcout issue

Dave Angel d at davea.name
Tue Feb 28 14:32:16 EST 2012


On 02/27/2012 10:26 PM, Ben Held wrote:
> Hello,
>
> After upgrading from Python 2.6 to 3.2 in our application we noticed that after calling Py_Initialize, our output from std::wcout has extra spaces in it:
>
> wcout<<  L"Just a test\n";
>
> now prints out:
>
> J u s t  a  t e s t
>
> Any clue why?
>
>
> Ben Held
>
>

Have you tried capturing this output, and looking at it with a hex 
viewer?  Are the characters really space, or could they be nulls?  If 
the latter, perhaps it's outputting ucs2 for Unicode.  (I have no 
further ideas, just trying to provoke some experimentation)



-- 

DaveA




More information about the Python-list mailing list