mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Catch ALL the utf8 errors (bug #244)
This commit is contained in:
@@ -174,7 +174,7 @@ namespace opengl
|
|||||||
dx += glyph->spacing;
|
dx += glyph->spacing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (utf8::invalid_utf8 e)
|
catch (utf8::exception e)
|
||||||
{
|
{
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
throw love::Exception(e.what());
|
throw love::Exception(e.what());
|
||||||
@@ -210,7 +210,7 @@ namespace opengl
|
|||||||
temp += static_cast<int>(g->spacing * mSpacing);
|
temp += static_cast<int>(g->spacing * mSpacing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (utf8::invalid_utf8 e)
|
catch (utf8::exception e)
|
||||||
{
|
{
|
||||||
throw love::Exception(e.what());
|
throw love::Exception(e.what());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user