Commit 91bdece0 authored by Bart van der Velden's avatar Bart van der Velden

Experiment with boost::locale (#65)

parent a6eddb6f
......@@ -42,7 +42,7 @@ namespace fs = boost::filesystem;
namespace po = boost::program_options;
namespace chrono = boost::chrono;
namespace utils = mc::utils;
namespace conv = boost::locale::conv;
namespace logging = boost::log;
namespace keywords = boost::log::keywords;
namespace sinks = boost::log::sinks;
......@@ -166,13 +166,13 @@ public:
AudioFile(const TagLib::FileRef& fileRef);
//private:
std::wstring m_artistName;
std::wstring m_trackTitle;
std::wstring m_albumTitle;
std::wstring m_date;
std::wstring m_albumArtist;
std::wstring m_fileName;
std::wstring m_folderName;
std::string m_artistName;
std::string m_trackTitle;
std::string m_albumTitle;
std::string m_date;
std::string m_albumArtist;
std::string m_fileName;
std::string m_folderName;
size_t m_fileSize;
unsigned int m_numSamples;
......@@ -186,9 +186,9 @@ AudioFile::AudioFile(const TagLib::FileRef& fileRef)
m_channels(0),
m_bitrate(0)
{
m_artistName = fileRef.tag()->artist().toWString();
m_trackTitle = fileRef.tag()->title().toWString();
m_albumTitle = fileRef.tag()->album().toWString();
m_artistName = conv::utf_to_utf<char>(fileRef.tag()->artist().toWString());
m_trackTitle = conv::utf_to_utf<char>(fileRef.tag()->title().toWString());
m_albumTitle = conv::utf_to_utf<char>(fileRef.tag()->album().toWString());
m_sampleRate = fileRef.audioProperties()->sampleRate();
TagLib::StringList sl = fileRef.file()->properties().unsupportedData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment