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