replace UTF-8 functions from glib

This commit is contained in:
Glenn Maynard
2004-05-17 21:28:26 +00:00
parent c32452e740
commit e72dcafae5
4 changed files with 215 additions and 100 deletions
+1 -1
View File
@@ -545,7 +545,7 @@ void Font::LoadFontPageSettings(FontPageSettings &cfg, IniFile &ini, const CStri
if(codepoint.substr(0, 2) == "U+" && IsHexVal(codepoint.substr(2)))
sscanf(codepoint.substr(2).c_str(), "%x", &c);
else if(codepoint.size() > 0 &&
utf8_get_char_len(codepoint.c_str()) == int(codepoint.size()))
utf8_get_char_len(codepoint[0]) == int(codepoint.size()))
{
c = utf8_get_char(codepoint.c_str());
if(c == wchar_t(-1))