PDA

View Full Version : QDir::entryList() on linux



JeanC
3rd March 2008, 10:19
Hello,

This was discussed before and it was said it was a problem with my ubuntu, not related to Qt.

But... my mp3 player on ubuntu, audacious, can read a file with a name like 'Clannad Crann Ull 03 Cruscin Lán.mp3'.

It displays a funny question mark, but it recognizes the file and plays it.

In a console, with 'ls <map>', the file gets displayed.

But such a file does not show up when I do an QDir::entryList() on that map.



QDir songmap = QDir("/home/jean/serverd/Mp3/Clannad/", "*.mp3", QDir::Name, QDir::Files);
QStringList songnames = songmap.entryList();
for (int i = 0; i < songnames.count(); i++)
qDebug() << songnames.at(i);


Output snippet:
"Clannad Crann Ull 02 The Last Rose of Summer.mp3"
"Clannad Crann Ull 04 Bacach Shile Andai.mp3"

Song 03 from that cd is missing in the list.

Suggestions or workarounds welcome.
Thanks.

wysota
3rd March 2008, 12:19
I suggest submitting a bug report to Trolltech - they should be the ones checking that out.

JeanC
3rd March 2008, 12:53
I suggest submitting a bug report to Trolltech - they should be the ones checking that out.

Done. Thanks wysota.

JeanC
3rd March 2008, 13:46
Problems with chars are solved by using codepage and iocharset like this: //192.168.1.10/D /home/jean/serverd cifs auto,rw,username=guest,password=,file_mode=0777,di r_mode=0777,user,codepage=cp852,iocharset=utf8 0 0

though entryList() still misses a file here and there.