So there seems to be something a little strange going on with the String constructor
Code: Select all
CEGUI::String(const char* chars, CEGUI::String::size_type chars_len);
I've tried a few small tests, and it seems to work as expected. However, when I pass it a 32 character string (of unsigned chars) full of character 10001000, I get back the 16 character string:
Code: Select all
11000011 10001000 11000010 10001000 11000011 10001000 11000010 10001000 11000011 10001000
11000010 10001000 11000011 10001000 11000010 10001000
A few similar tests suggest that the problem is something to do with the original string containing negative value characters, but I'm not sure if that's the problem exactly.