Fix prompt under Windows.

The fix is obviously a hack caused by that NOT_A_WCHAR
doesn't fit in wchar_t. Better fix would be nice.
This commit is contained in:
Konrad Borowski 2014-05-10 17:13:08 +02:00
parent cd7f1a15f8
commit 6596d91c82

View File

@ -1619,8 +1619,9 @@ static bool unescape_string_internal(const wchar_t * const input, const size_t i
}
}
wchar_t not_a_wchar = NOT_A_WCHAR;
/* Now maybe append the char */
if (to_append != NOT_A_WCHAR)
if (to_append != not_a_wchar)
{
result.push_back(to_append);
}