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
+2 -2
View File
@@ -126,8 +126,8 @@ void TitleSubst::Load(const CString &filename, const CString &section)
if(line.size() > 0 && utf8_get_char(line.c_str()) == 0xFEFF)
{
/* Annoying header that Windows puts on UTF-8 plaintext
* files; remove it. */
line.erase(0, utf8_get_char_len(line.c_str()));
* files; remove it. */
line.erase(0, utf8_get_char_len(line[0]));
}
TrimLeft(line);