Game Development Community

Unicode bug

by Michael Woerister · in Torque Game Builder · 04/26/2006 (4:06 am) · 0 replies

Hi,

there seems to be an error in core/unicode.cc in function convertUTF8toUTF16(const UTF8*), convertUTF8toUTF32(const UTF8*) and so on. The buffer is allocated with
UTF16 *ret = new UTF16(nCodepoints);
but I guess it should be
UTF16 *ret = new UTF16[nCodepoints];

-Michael