QDir::entryList() on linux
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.
Code:
QDir songmap
= QDir("/home/jean/serverd/Mp3/Clannad/",
"*.mp3",
QDir::Name,
QDir::Files);
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.
Re: QDir::entryList() on linux
I suggest submitting a bug report to Trolltech - they should be the ones checking that out.
Re: QDir::entryList() on linux
Quote:
Originally Posted by
wysota
I suggest submitting a bug report to Trolltech - they should be the ones checking that out.
Done. Thanks wysota.
Re: QDir::entryList() on linux SOLVED
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.