Bug#254339: gtranslator: Search function doesn't handle non-ASCII content

Sebastian Kapfer Sebastian Kapfer <sebastian_kapfer@gmx.net>, 254339@bugs.debian.org
Sun, 13 Jun 2004 22:50:20 +0200


Package: gtranslator
Version: 1.1.5-1
Severity: important

Gtranslator's search function doesn't work well with non-ASCII text.
When non-ASCII letters are present in a message in which the search
pattern is found, gtranslator highlights the wrong passage of text.  For
example, when searching for "des", it would highlight "es " in the
following message:

Ein paar m=C3=B6gliche Befehle (...) des Bildschirms
                                 ^^^

In this message, when search for naho, it highlights "o=C5=99e.".

Zobrazit vybran=C3=A9 p=C5=99=C3=ADkazy naho=C5=99e...
                            ^^^^

In short, the selection shifts to the right for each non-ASCII letter
in the message.  Looks like a classical bytes vs. characters problem to
me.

Severity important because this is supposed to be an i18n tool. ;-)

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.6-gray-11
Locale: LANG=3Dde_DE.UTF-8, LC_CTYPE=3Dde_DE.UTF-8

Versions of packages gtranslator depends on:
ii  libart-2.0-2              2.3.16-5       Library of functions for 2D gr=
aphi
ii  libatk1.0-0               1.6.1-2        The ATK accessibility toolkit
ii  libbonobo2-0              2.6.0-2        Bonobo CORBA interfaces librar=
y
ii  libbonoboui2-0            2.6.1-1        The Bonobo UI library
ii  libc6                     2.3.2.ds1-13   GNU C Library: Shared librarie=
s an
ii  libgconf2-4               2.6.1-2        GNOME configuration database s=
yste
ii  libglib2.0-0              2.4.2-1        The GLib library of C routines=

ii  libgnome2-0               2.6.1-3        The GNOME 2 library - runtime =
file
ii  libgnomecanvas2-0         2.6.1.1-2      A powerful object-oriented dis=
play
ii  libgnomeui-0              2.6.1.1-2      The GNOME 2 libraries (User In=
terf
ii  libgnomevfs2-0            2.6.1.1-3      The GNOME virtual file-system =
libr
ii  libgtk2.0-0               2.4.2-1        The GTK+ graphical user interf=
ace=20
ii  libice6                   4.3.0.dfsg.1-4 Inter-Client Exchange library
ii  liborbit2                 1:2.10.2-1.1   libraries for ORBit2 - a CORBA=
 ORB
ii  libpango1.0-0             1.4.0-4        Layout and rendering of intern=
atio
ii  libpopt0                  1.7-4          lib for parsing cmdline parame=
ters
ii  libsm6                    4.3.0.dfsg.1-4 X Window System Session Manage=
ment
ii  libxml2                   2.6.10-3       GNOME XML library
ii  scrollkeeper              0.3.14-8       A free electronic cataloging s=
yste
ii  xlibs                     4.3.0.dfsg.1-4 X Window System client librari=
es m
ii  zlib1g                    1:1.2.1.1-3    compression library - runtime

-- no debconf information