Rewrite str2wcstring to properly handle embedded nulls, and be simpler

This commit is contained in:
ridiculousfish
2012-12-20 12:25:35 -08:00
parent d5af389d2e
commit ce15abd577
3 changed files with 71 additions and 89 deletions

View File

@@ -284,7 +284,6 @@ static void test_convert()
/* Verify correct behavior with embedded nulls */
static void test_convert_nulls(void)
{
return;
say(L"Testing embedded nulls in string conversion");
const wchar_t in[] = L"AAA\0BBB";
const size_t in_len = (sizeof in / sizeof *in) - 1;