Improvement to fribidi code : if fribidi says it failed to convert the string, don't read the output buffer
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5568 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
be70408b38
commit
f43a3da3ad
@ -221,6 +221,8 @@ const wchar_t* Translations::w_gettext(const char* original)
|
||||
if (!result)
|
||||
{
|
||||
std::cerr << "Fribidi failed in 'fribidi_log2vis' =(\n";
|
||||
m_converted_string = core::stringw(original);
|
||||
return m_converted_string.c_str();
|
||||
}
|
||||
|
||||
//std::cout << "fribidi output : ";
|
||||
|
Loading…
Reference in New Issue
Block a user