k4dirstat icon indicating copy to clipboard operation
k4dirstat copied to clipboard

Files/directories with wrong charset are ignored

Open jeromerobert opened this issue 10 years ago • 1 comments

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 * or QByteArray for local file systems
  • QUrl and QString for KIO file systems

jeromerobert avatar Aug 02 '15 17:08 jeromerobert

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


Fix lstat on non ASCII file names

Ref #12

jeromerobert avatar Aug 08 '15 15:08 jeromerobert