From df51dda6c472eef2f089c72fc15b784249103435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 23 Jul 2009 13:26:45 +0000 Subject: [PATCH] * 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 --- src/add-ons/kernel/partitioning_systems/efi/efi_gpt.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/add-ons/kernel/partitioning_systems/efi/efi_gpt.cpp b/src/add-ons/kernel/partitioning_systems/efi/efi_gpt.cpp index 75dd47e22c..4096295826 100644 --- a/src/add-ons/kernel/partitioning_systems/efi/efi_gpt.cpp +++ b/src/add-ons/kernel/partitioning_systems/efi/efi_gpt.cpp @@ -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); }