+ oops, fixed
This commit is contained in:
parent
ce45f8dec3
commit
6268f4fb80
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ namespace boost { namespace python {
|
|||
PyObject * operator() (UnicodeString const& s) const
|
||||
{
|
||||
int32_t len = s.length();
|
||||
boost::scoped_array<wchar_t> buf(new wchar_t(len));
|
||||
boost::scoped_array<wchar_t> buf(new wchar_t[len]);
|
||||
UErrorCode err = U_ZERO_ERROR;
|
||||
u_strToWCS(buf.get(),len,0,s.getBuffer(),len,&err);
|
||||
PyObject *obj = Py_None;
|
||||
|
|
Loading…
Reference in a new issue