k4dirstat
k4dirstat copied to clipboard
Files/directories with wrong charset are ignored
Original report by Jerome Robert (Bitbucket: jeromerobert, GitHub: jeromerobert).
Files and directories whose name is not encoded with the charset of the operative system are ignored by k4dirstat. The size of such files will always be 0 and directory will not be recursed.
The reason is that k4dirstat use QString and QUrl to store file names. The good way would be to use char * or QByteArray although this would not work for KIO file systems. May be we need 2 mechanisms:
char *orQByteArrayfor local file systems- QUrl and QString for KIO file systems
Original comment by Jerome Robert (Bitbucket: jeromerobert, GitHub: jeromerobert).
Fix lstat on non ASCII file names
Ref #12