UnicodeWarning on cyrillic input for ru_RU version of apport-cli - keyboard response not accepted

Bug #538779 reported by Roman Yepishev
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Apport
Fix Released
Medium
Unassigned

Bug Description

When I am trying to report a problem using apport-cli in ru_RU locale I get the following:

"""
rtg@darkfire:/var/crash$ apport-cli _usr_lib_telepathy_mission-control-5.1001.crash

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

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

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

The first part about the labels being the same for different items is already filed as LP:538771. The real issue is whatever I try to select at that point, apport-cli prints UnicodeWarning and it asks me about my choice again. So, basically apport-cli is unusable in current Lucid Lynx.

apport version is 1.13-0ubuntu2

Revision history for this message
Serhiy (xintx-ua) wrote :

Workaround:

export LANGUAGE=en
apport-cli /var/crash/...

Changed in apport:
status: New → Confirmed
Revision history for this message
Evan (ev) wrote :

Is this still an issue in the current version of apport?

Changed in apport:
status: Confirmed → Incomplete
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Apport because there has been no activity for 60 days.]

Changed in apport:
status: Incomplete → Expired
Revision history for this message
Alfred Plohoy (plohoyav) wrote :

I have an error "UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode"

Look at screenshot. Please make selection in apport by numbers (1,2,3, etc.).

Changed in apport:
status: Expired → New
Revision history for this message
Alfred Plohoy (plohoyav) wrote :

But if I type "sudo LANG=C apport-collect -p xserver-xorg-video-nouveau-lts-vivid 1534794" (added Lang=C) all works perfectly.

Revision history for this message
Benjamin Drung (bdrung) wrote :

I assume that this bug has been fixed since Apport started using Python 3. Please re-open if you can reproduce the bug on Ubuntu 22.04 or newer.

Changed in apport:
status: New → Fix Released
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.