* Added a comment mentioning the missing handling of characters out of the UCS-2

range.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31714 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-07-23 13:26:45 +00:00
parent c06e68d0c8
commit df51dda6c4

View File

@ -166,6 +166,7 @@ to_ucs2(const char *from, size_t fromLength, uint16 *to, size_t maxToLength)
{
size_t index = 0;
while (from[0] && index < maxToLength) {
// TODO: handle characters that are not representable in UCS-2 better
to[index++] = UTF8ToCharCode(&from);
}