Package: libwxgtk2.5.3
Version: 2.5.3.2
Severity: important

Hi, 

in wxDir::Read() line 139:

       de_d_name = wxConvLibc.cMB2WC( de->d_name );

wxConvLibc.cMB2WC returns an empty string for a filename with
german umlaut characters like '�ber.txt'.

This has a few bad implications:


if called with flag wxDIR_DIRS it falsely identifies files as directories
and returns an empty string. this leads (for example) to a weird tree structure
with wxDirDialog containing empty items you can expand ad nauseam, like

 - "/rootdir"
   + ""
   - ""
     - ""
       - ""
         + ""    # <- expandable, infinitely
       + "foo"
     + "foo"
   + "foo"

Where the real directory just contains a single dir called "foo"
and the expected directory tree would be something like:

 - "/rootdir"
   + "foo"


I think this has also an impact on wxDir::Traverse which then 
runs into an endless loop supplying the same dir over and over again.
(this may as well be another problem, I haven't debugged that, yet)

Additionally, it takes about 12 seconds to start up a wxDirDialog on
my Intel PII 400MHz. Is that normal?


I suggest, as a workaround, that when the conversion of de->d_name fails 
(i.e. wxConvLibc.cMB2WC( ) returns "\0") that de_d_name should be set
to de->d_name (without conversion) directly. Better having some weird
looking character in the control than having these infinitely expandable
empty items.


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (300, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages libwxgtk2.5.3 depends on:
ii  libatk1.0-0              1.8.0-4         The ATK accessibility toolkit
ii  libc6                    2.3.2.ds1-20    GNU C Library: Shared libraries an
ii  libesd-alsa0 [libesd0]   0.2.35-2        Enlightened Sound Daemon (ALSA) -
ii  libexpat1                1.95.8-1        XML parsing C library - runtime li
ii  libgcc1                  1:3.4.3-6       GCC support library
ii  libglib2.0-0             2.4.8-1         The GLib library of C routines
ii  libgtk2.0-0              2.4.14-2        The GTK+ graphical user interface
ii  libjpeg62                6b-9            The Independent JPEG Group's JPEG
ii  libpango1.0-0            1.6.0-3         Layout and rendering of internatio
ii  libpng12-0               1.2.8rel-1      PNG library - runtime
ii  libstdc++5               1:3.3.5-5       The GNU Standard C++ Library v3
ii  libtiff4                 3.6.1-5         Tag Image File Format library
ii  xlibmesa-gl [libgl1]     4.3.0.dfsg.1-10 Mesa 3D graphics library [XFree86]
ii  xlibmesa-glu [libglu1]   4.3.0.dfsg.1-10 Mesa OpenGL utility library [XFree
ii  zlib1g                   1:1.2.2-3       compression library - runtime

-- no debconf information


--
Claudio Bley                                 ASCII ribbon campaign (")
Debian GNU/Linux user                         - against HTML email  X
http://www.cs.uni-magdeburg.de/~bley/                     & vCards / \

Reply via email to