provide file with locales and corresponding encodings

This commit is contained in:
Andrzej Rybczak
2009-03-20 20:33:35 +01:00
parent 23567ed4f1
commit b2317df843
7 changed files with 429 additions and 14 deletions

View File

@@ -84,7 +84,7 @@ string Song::GetLength() const
void Song::Localize()
{
# if defined(SUPPORTED_LOCALES) && defined(HAVE_ICONV_H)
# ifdef HAVE_ICONV_H
if (isLocalised)
return;
str_pool_utf_to_locale(itsSong->file);
@@ -101,7 +101,7 @@ void Song::Localize()
str_pool_utf_to_locale(itsSong->disc);
str_pool_utf_to_locale(itsSong->comment);
isLocalised = 1;
# endif // SUPPORTED_LOCALES && HAVE_ICONV_H
# endif // HAVE_ICONV_H
}
void Song::Clear()