apport-cli asks me to input localized key / letter and can't understand my answer

Bug #1071941 reported by mikhail-777
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

1) The release of Ubuntu you are using
$ lsb_release -rd
Description: Ubuntu 12.04.1 LTS
Release: 12.04

2) The version of the package you are using
$ apt-cache policy apport
apport:
  Установлен: 2.0.1-0ubuntu14
  Кандидат: 2.0.1-0ubuntu14
  Таблица версий:
 *** 2.0.1-0ubuntu14 0
        500 http://mirror.yandex.ru/ubuntu/ precise-updates/main i386 Packages
        100 /var/lib/dpkg/status
     2.0.1-0ubuntu5 0
        500 http://mirror.yandex.ru/ubuntu/ precise/main i386 Packages

3) What you expected to happen
I start in terminal simple command: apport-cli
(under x-environment, Unity 2D/3D, with Russian localization and UTF-8 default encoding).
$ apport-cli

*** Отправить отчёт об ошибке разработчикам?

После того, как отчёт будет отправлен, заполните форму
в автоматически открывшемся окне браузера.

Что вы хотите сделать? Возможные варианты:
  О: Отправить отчёт (2.6 MB)
  П: Просмотреть отчёт
  С: Сохранить файл отчёта для последующей отправки или копирования куда-либо
  И: Отменить и игнорировать будущие сбои в этой версии программы
  Т: Отменить
Пожалуйста, выберите (О/П/С/И/Т): Т
До свидания!
$
It is what I expect.

4) What happened instead
$ apport-cli

*** Отправить отчёт об ошибке разработчикам?

После того, как отчёт будет отправлен, заполните форму
в автоматически открывшемся окне браузера.

Что вы хотите сделать? Возможные варианты:
  О: Отправить отчёт (4.7 MB)
  П: Просмотреть отчёт
  С: Сохранить файл отчёта для последующей отправки или копирования куда-либо
  И: Отменить и игнорировать будущие сбои в этой версии программы
  Т: Отменить
Пожалуйста, выберите (О/П/С/И/Т): Т
/usr/bin/apport-cli:84: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  return self.keys.index(response[0].upper()) + 1
Что вы хотите сделать? Возможные варианты:
  О: Отправить отчёт (4.7 MB)
  П: Просмотреть отчёт
  С: Сохранить файл отчёта для последующей отправки или копирования куда-либо
  И: Отменить и игнорировать будущие сбои в этой версии программы
  Т: Отменить
Пожалуйста, выберите (О/П/С/И/Т):
Что вы хотите сделать? Возможные варианты:
  О: Отправить отчёт (4.7 MB)
  П: Просмотреть отчёт
  С: Сохранить файл отчёта для последующей отправки или копирования куда-либо
  И: Отменить и игнорировать будущие сбои в этой версии программы
  Т: Отменить
Пожалуйста, выберите (О/П/С/И/Т): ^C
$

When I inputed Russian letter 'Т', which means Cancel (Отменить), it shows me warning:
/usr/bin/apport-cli:84: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  return self.keys.index(response[0].upper()) + 1
Then it interprets my answer as 2 bytes (2 letters / symbols), I think it because of Unicode.
It shows me double question, and the only thing what I can do: break program by pressing Ctrl+C (^C as you can see above).

P. S. : I always hated people, who allows programs to use non-latin / non-english hotkeys.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: apport 2.0.1-0ubuntu14
Uname: Linux 3.5.7-zen-proxym-3 i686
ApportLog:

ApportVersion: 2.0.1-0ubuntu14
Architecture: i386
Date: Sat Oct 27 02:18:28 2012
InstallationMedia: Ubuntu-Studio 10.10 "Maverick Meerkat" - Release i386 (20101008)
PackageArchitecture: all
SourcePackage: apport
UpgradeStatus: Upgraded to precise on 2012-10-23 (3 days ago)

Revision history for this message
mikhail-777 (wpr-oxym) wrote :
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apport (Ubuntu):
status: New → Confirmed
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in apport (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
mikhail-777 (wpr-oxym) wrote :

So, you wait till it is unsupported version...

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

I'm so sorry this issue went unanswered for so long. The backlog we've accrued here is truly unfortunate. We'd really like to see the situation improve, but with nearly 1300 open bugs, manually testing each has become virtually impossible. The aim today was to ping neglected bugs such as these and allow those still effected to put their bug back on the radar again.

Is this still an issue?

Revision history for this message
mikhail-777 (wpr-oxym) wrote :

So many bugs in Ubuntu, and become more with every new LTS release,

so the one good sulution for me is just removing all buggy components instead of testing and reporting (because nobody has time to fix it), even if Cannonical promote it as essential.

No big problem really, but programs, which require input answers from user in non-latin Unicode, are not very smart programs, because:

1) problems with Unicode decoding are always possible (by developer mistake),

2) user can have problem with input of non-latin symbols by keyboard (by some other bug).

Good solution is: expects answers hotkeys in latin (English) short strings (like `Да[Y]/Нет[N]:` for `Yes[Y]/No[N]:`), even you show localized message.

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

I see. Thanks for the update.

Changed in apport (Ubuntu):
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.