[ubuntu-dev] Bug#605147: gdebi-core: gdebi CLI in interactive mode doesn't understand "y" answer when locale is non-english.

Źmicier 321942 at gmail.com
Sat Nov 27 21:35:51 UTC 2010


Package: gdebi-core
Version: 0.6.4
Severity: important
Tags: l10n

Since Debian Squeeze gdebi parses user's response to "Do you want to install
the software package?" with following code (GDebiCli.py):

    msg =  _("Do you want to install the software package? [y/N]:")
    print msg,
    sys.stdout.flush()
    res = sys.stdin.readline()
    if res.lower().startswith(msg[-5]):
        app.install()

The problem is that the -5 character in localized question string may be not
"y" and not equivalent for "y". E.g. when locale is russian, "[" is
correct positive answer now.
As non-correct response is equal to "N" so dialog with gdebi look as:

(russian)
$ sudo gdebi abook_0.5.6-7_i386.deb
<snipped>
Вы хотите установить этот пакет? [y/N]y

$


(french)
$ sudo gdebi abook_0.5.6-7_i386.deb
<snipped>
Voulez-vous installer le paquet logiciel ? [o/N] :o

$

See the bug #577140 on Launchpad [1] also.

[1] http://bugs.launchpad.net/gdebi/+bug/577140

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gdebi-core depends on:
ii  python                  2.6.6-3+squeeze1 interactive high-level object-orie
ii  python-apt              0.7.98.1         Python interface to libapt-pkg
ii  python-central          0.6.16+nmu1      register and build utility for Pyt
ii  python-debian           0.1.18           Python modules to work with Debian

gdebi-core recommends no packages.

gdebi-core suggests no packages.

-- no debconf information





More information about the ubuntu-dev-team mailing list