Mercurial > audlegacy-plugins
diff src/modplug/modplugbmp.cxx @ 2121:8f1c26966b61
Assume DOS codepage 850 to be the default charset used in most modules.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 23 Oct 2007 09:03:55 +0300 |
parents | 5fea114ca11e |
children | 62391135da44 |
line wrap: on
line diff
--- a/src/modplug/modplugbmp.cxx Tue Oct 23 08:58:15 2007 +0300 +++ b/src/modplug/modplugbmp.cxx Tue Oct 23 09:03:55 2007 +0300 @@ -504,7 +504,7 @@ { CSoundFile* lSoundFile; Archive* lArchive; - std::string tmps; + const gchar *tmps; //open and mmap the file lArchive = OpenArchive(aFilename); @@ -543,15 +543,11 @@ case MOD_TYPE_PSM: tmps = "Protracker Studio Module"; break; default: tmps = "ModPlug unknown"; break; } - aud_tuple_associate_string(ti, FIELD_CODEC, NULL, tmps.c_str()); + aud_tuple_associate_string(ti, FIELD_CODEC, NULL, tmps); aud_tuple_associate_string(ti, FIELD_QUALITY, NULL, "sequenced"); aud_tuple_associate_int(ti, FIELD_LENGTH, NULL, lSoundFile->GetSongTime() * 1000); - - /* NOTICE! FIXME? This is actually incorrect. We _cannot_ know what charset - * an arbitrary module file uses .. typically it is some DOS CP-variant, - * except for true Amiga modules. - */ - gchar *tmps2 = aud_str_to_utf8(lSoundFile->GetTitle()); + + gchar *tmps2 = MODPLUG_CONVERT(lSoundFile->GetTitle()); aud_tuple_associate_string(ti, FIELD_TITLE, NULL, tmps2); g_free(tmps2);