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