jeromerobert / k4dirstat

K4DirStat (KDE Directory Statistics) is a small utility program that sums up disk usage for directory trees, very much like the Unix 'du' command. It displays the disk space used up by a directory tree, both numerically and graphically (copied from the Debian package description).
GNU General Public License v2.0
61 stars 10 forks source link

Files/directories with wrong charset are ignored #12

Open jeromerobert opened 9 years ago

jeromerobert commented 9 years ago

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:

jeromerobert commented 9 years ago

Original comment by Jerome Robert (Bitbucket: jeromerobert, GitHub: jeromerobert).


Fix lstat on non ASCII file names

Ref #12