diff data/fileio/MP3FileReader.cpp @ 1346:75ad55315db4 3.0-integration

More work on getting tests (especially file encoding ones) running on Windows. Various problems here to do with interaction with test filenames in Hg repos
author Chris Cannam
date Fri, 06 Jan 2017 15:44:55 +0000
parents c380e56c95f5
children b3cb0edc25cd
line wrap: on
line diff
--- a/data/fileio/MP3FileReader.cpp	Fri Jan 06 12:11:08 2017 +0000
+++ b/data/fileio/MP3FileReader.cpp	Fri Jan 06 15:44:55 2017 +0000
@@ -34,6 +34,8 @@
 
 #include <QFileInfo>
 
+#include <QTextCodec>
+
 #ifdef _MSC_VER
 #include <io.h>
 #define open _open
@@ -75,6 +77,8 @@
         CodedAudioFileReader::setFramesToTrim(DEFAULT_DECODER_DELAY, 0);
     }
     
+    SVDEBUG << "Codec for locale is " << (const char *)(QTextCodec::codecForLocale()->name().data()) << endl;
+
     struct stat stat;
     if (::stat(m_path.toLocal8Bit().data(), &stat) == -1 || stat.st_size == 0) {
         m_error = QString("File %1 does not exist.").arg(m_path);