apport-cli does not accept non-Latin input (Unicode)

Bug #349081 reported by Shahar Or
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: apport

Dear interested parties,

Some symbols show as question marks.

See attached screen shot.

ProblemType: Bug
ApportLog:
 apport (pid 26601) Thu Mar 26 18:55:21 2009: called for pid 5755, signal 11
 apport (pid 26601) Thu Mar 26 18:55:21 2009: executable: /usr/bin/evolution (command line "evolution")
 modinfo: could not open cdrom: No such device
 modinfo: could not open cdrom: No such device
 apport (pid 26601) Thu Mar 26 18:56:42 2009: wrote report /var/crash/_usr_bin_evolution.1000.crash
Architecture: i386
CrashReports:
 600:1000:1000:10678963:2009-03-26 19:05:22.000000000 +0200:2009-03-26 19:12:17.000000000 +0200:/var/crash/_usr_bin_evolution.1000.crash
 600:1000:1000:2194325:2009-03-19 12:48:35.000000000 +0200:2009-03-19 12:48:36.000000000 +0200:/var/crash/_usr_bin_pidgin.1000.crash
 0:1000:1000:19483:2009-03-23 19:01:54.000000000 +0200:2009-03-23 19:01:48.000000000 +0200:/var/crash/_usr_bin_seahorse-agent.1000.crash
 600:1000:1000:39165:2009-03-26 18:45:49.000000000 +0200:2009-03-26 18:46:00.000000000 +0200:/var/crash/_usr_bin_update-manager.1000.crash
 600:1000:1000:5103076:2009-03-19 17:55:43.000000000 +0200:2009-03-19 17:55:44.000000000 +0200:/var/crash/_usr_lib_firefox-3.0.7_firefox.1000.crash
DistroRelease: Ubuntu 8.10
NonfreeKernelModules: ath_hal
Package: apport 0.119
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=he_IL.UTF-8
SourcePackage: apport
Uname: Linux 2.6.27-11-generic i686

Revision history for this message
Shahar Or (mightyiam) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

Reproduces perfectly.

Changed in apport (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Shahar Or (mightyiam)
tags: added: hebrew
Revision history for this message
Marco Rodrigues (gothicx) wrote :

Could you check with apport from Karmic?

Revision history for this message
Shahar Or (mightyiam) wrote :

The following shows that although the strings seem like they were fixed, it doesn't understand my input.

dawn@dawn-desktop:~$ sudo apport-cli /var/crash/linux-image-2.6.31-14-generic.161831.crash
[sudo] password for dawn:

*** האם לשלוח דוח תקלה למפתחים?

לאחר שדיווח אודות התקלה נשלח, נא מלאו את הטופס
בדפדפן האינטרנט שנפתח אוטומטית.

מה ברצונך לעשות? אפשרויותך הן:
  ש: שלח דוח (810.0 KiB)
  צ: הצג דוח
  ש: שמור על קובץ הדוח לשליחה מאוחרת או העתקה למיקום אחר
  ב: ביטול
נא לבחור (ש/צ/ש/ב):ש
/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
מה ברצונך לעשות? אפשרויותך הן:
  ש: שלח דוח (810.0 KiB)
  צ: הצג דוח
  ש: שמור על קובץ הדוח לשליחה מאוחרת או העתקה למיקום אחר
  ב: ביטול
נא לבחור (ש/צ/ש/ב):
מה ברצונך לעשות? אפשרויותך הן:
  ש: שלח דוח (810.0 KiB)
  צ: הצג דוח
  ש: שמור על קובץ הדוח לשליחה מאוחרת או העתקה למיקום אחר
  ב: ביטול
נא לבחור (ש/צ/ש/ב):צ
מה ברצונך לעשות? אפשרויותך הן:
  ש: שלח דוח (810.0 KiB)
  צ: הצג דוח
  ש: שמור על קובץ הדוח לשליחה מאוחרת או העתקה למיקום אחר
  ב: ביטול
נא לבחור (ש/צ/ש/ב):
מה ברצונך לעשות? אפשרויותך הן:
  ש: שלח דוח (810.0 KiB)
  צ: הצג דוח
  ש: שמור על קובץ הדוח לשליחה מאוחרת או העתקה למיקום אחר
  ב: ביטול
נא לבחור (ש/צ/ש/ב):

Changed in apport (Ubuntu):
status: Triaged → Confirmed
Martin Pitt (pitti)
summary: - Hebrew translation of apport-cli not usable in terminal
+ apport-cli Hebrew inputs not recognized
Changed in apport (Ubuntu):
status: Confirmed → Triaged
summary: - apport-cli Hebrew inputs not recognized
+ apport-cli does not accept non-Latin input (Unicode)
Revision history for this message
Simos Xenitellis  (simosx) wrote :

In Greek we cannot use the options like

C) _Cancel # this is in English, imagine in Greek A) _Ακύρωση

If we press the corresponding Greek hotkey, nothing happens. The Python code is not able to understand that the A being pressed is the Unicode A in the translated message.

To test,
1. Install the Greek Language support (therefore apport is translted to Greek)
2. Run

unsetenv DISPLAY
LANG=el_GR.UTF-8 ubuntu-bug audio

Then, try to type something in Greek for the options. Nothing is accepted.

The problem is in the Python code that does the unbuffered reads.

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.