use boost.locale for charset conversions instead of iconv

This commit is contained in:
Andrzej Rybczak
2012-10-04 21:25:48 +02:00
parent 802886c2e5
commit e40edade0e
12 changed files with 53 additions and 202 deletions

View File

@@ -127,12 +127,11 @@ void Lastfm::Load()
{
bool first = 1;
std::string line;
while (getline(input, line))
while (std::getline(input, line))
{
if (!first)
w << '\n';
IConv::utf8ToLocale_(line);
w << line;
w << Charset::utf8ToLocale(line);
first = 0;
}
input.close();
@@ -171,8 +170,7 @@ void Lastfm::Download()
{
Save(result.second);
w.clear();
IConv::utf8ToLocale_(result.second);
w << result.second;
w << Charset::utf8ToLocale(result.second);
itsService->colorizeOutput(w);
}
else