apport-cli fails to understand non-English characters

Bug #840163 reported by Volodymyr Kolesnykov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

$ apport-cli -p 5838

*** akonadi_agent_launcher неожиданно закрылась 2011-09-02 в 14:19:53.

Если вы не вводили секретную информацию (пароли или личные данные),
вы можете помочь нам улучшить программу, отправив отчёт о неполадке.

Что вы хотите сделать? Возможные варианты:
  С: Сообщить о проблеме...
  И: Отменить и игнорировать будущие сбои в этой версии программы
  Т: Отменить
Пожалуйста, выберите (С/И/Т): С
/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

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: apport 1.22-0ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-9.15-server 3.0.3
Uname: Linux 3.0.0-9-server x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
CrashReports:
 600:0:0:65620:2011-08-28 22:48:31.910725355 +0300:2011-08-28 22:48:31.910725355 +0300:/var/crash/_usr_share_gdebi_gdebi-kde.0.crash
 600:1000:1000:1066939:2011-09-02 14:19:56.037833000 +0300:2011-09-03 11:04:23.074873676 +0300:/var/crash/_usr_bin_akonadi_agent_launcher.1000.crash
 600:1000:1000:221213:2011-09-03 11:06:23.310166000 +0300:2011-09-03 11:06:24.310166000 +0300:/var/crash/_usr_lib_libreoffice_program_oosplash.bin.1000.crash
Date: Sat Sep 3 11:08:22 2011
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en
 SHELL=/bin/bash
 LANG=ru_RU.UTF-8
SourcePackage: apport
UpgradeStatus: Upgraded to oneiric on 2011-08-21 (12 days ago)

Revision history for this message
Volodymyr Kolesnykov (sjinks) wrote :
Revision history for this message
Volodymyr Kolesnykov (sjinks) wrote :

Could be related to Bug #492290

Revision history for this message
Volodymyr Kolesnykov (sjinks) wrote :

Happens in Precise as well

Что вы хотите сделать? Возможные варианты:
  О: Отправить отчёт (12.4 KB)
  П: Просмотреть отчёт
  С: Сохранить файл отчёта для последующей отправки или копирования куда-либо
  И: Отменить и игнорировать будущие сбои в этой версии программы
  Т: Отменить
Пожалуйста, выберите (О/П/С/И/Т): о
/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

tags: added: precise
Revision history for this message
Volodymyr Kolesnykov (sjinks) wrote :

I am not a Python expert but it seems like the bug originates from CLIDialog.raw_input_char method.

Russian letters usually take 2 bytes in UTF-8. For example, Russian П (View Report) is D0 BF.

raw_input_char() returns only one char (D0) which is not valid UTF-8. run() then generates an exception, while True loop continues and the next call to raw_input_char() returns the second part of the letter (BF).

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
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.