Package: k4dirstat
Version: 2.7.6-1
Severity: normal

Dear Maintainer,

The functionality to read kdirstat.cache.gz files appears to be buggy in this
version. For example:

$ mkdir -p /tmp/kdirstat/x/y/z
$ mkdir -p /tmp/kdirstat/a/b/c
$ tree /tmp/kdirstat/
/tmp/kdirstat/
├── a
│   └── b
│       └── c
└── x
    └── y
        └── z

Running k4dirstat on /tmp/kdirstat produces the same layout in the GUI
(including the identical label names being the base name not the path).

Choosing File -> Write to cache file creates a file containing:

-----8<-----------
[kdirstat 4.0 cache file]
# Do not edit!
#
# Type  path            size    mtime           <optional fields>

D %2Ftmp%2Fkdirstat     1K      0x5443a8ea
D %2Ftmp%2Fkdirstat%2Fx 1365    0x5443a8e8
D %2Ftmp%2Fkdirstat%2Fx%2Fy     1365    0x5443a8e8
D %2Ftmp%2Fkdirstat%2Fx%2Fy%2Fz 2K      0x5443a8e8
D %2Ftmp%2Fkdirstat%2Fa 1365    0x5443a8ea
D %2Ftmp%2Fkdirstat%2Fa%2Fb     1365    0x5443a8ea
D %2Ftmp%2Fkdirstat%2Fa%2Fb%2Fc 2K      0x5443a8ea
-----8<-----------

However reloading the cache file produces a GUI like:

/tmp/kdirstat/
└── /tmp/kdirstat/x
    └── /tmp/kdirstat/x/y
        └── /tmp/kdirstat/x/y/z
            └── /tmp/kdirstat/a
                └── /tmp/kdirstat/a/b
                    └── /tmp/kdirstat/a/b/c

As well as the incorrect parenting of a/b/c under /x/y/z The labels are also
now the full path.

On a hunch I rewrote the cache file with "s,%2F,/,g" and the result was
correctly read and reproduced the original GUI layout. Not sure if this
indicates overzealous encoding on save or not zealous enough decoding on
load...

Cheers,
Ian.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
armhf
armel

Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages k4dirstat depends on:
ii  kde-runtime        4:4.14.0-1
ii  libc6              2.19-10
ii  libgcc1            1:4.9.1-12
ii  libkde3support4    4:4.14.0-1
ii  libkdecore5        4:4.14.0-1
ii  libkdeui5          4:4.14.0-1
ii  libkio5            4:4.14.0-1
ii  libkonq5abi1       4:4.14.0-1
ii  libqt4-dbus        4:4.8.6+git64-g5dc8b2b+dfsg-1
ii  libqt4-network     4:4.8.6+git64-g5dc8b2b+dfsg-1
ii  libqt4-qt3support  4:4.8.6+git64-g5dc8b2b+dfsg-1
ii  libqt4-svg         4:4.8.6+git64-g5dc8b2b+dfsg-1
ii  libqt4-xml         4:4.8.6+git64-g5dc8b2b+dfsg-1
ii  libqtcore4         4:4.8.6+git64-g5dc8b2b+dfsg-1
ii  libqtgui4          4:4.8.6+git64-g5dc8b2b+dfsg-1
ii  libstdc++6         4.9.1-12
ii  zlib1g             1:1.2.8.dfsg-1

k4dirstat recommends no packages.

k4dirstat suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to