Unicode characters not shown correctly

Bug #109907 reported by Matej Komel
18
Affects Status Importance Assigned to Milestone
gdebi
Fix Released
Undecided
Unassigned
Nominated for Trunk by Mario César Señoranis
gdebi (Ubuntu)
Fix Released
Undecided
Michael Vogt

Bug Description

If a package is made from a control file encoded as UTF8, which contains some UTF8 chars (e.g. in Description field),
GDebi does not correctly display them.

After package is installed, viewing this package in Synaptic Package Manager shows those characters correctly, so I am
assuming that control file encoded as UTF8 is a valid one.

A simple modification of function utf8 in GDebi.py fixed this:
instead of:
    return unicode(str, 'latin1').encode('utf-8')

do this:
    return unicode(str).encode('utf-8')

--
Matej Komel

Revision history for this message
Matej Komel (matej-komel) wrote :
Revision history for this message
Artem Popov (artfwo) wrote :

Confirmed on Hardy, please fix this.

Changed in gdebi:
status: New → Confirmed
Revision history for this message
Mario César Señoranis (mariocesar) wrote :

Confirmed, It's very important to fix, It can not be use names on Spanish like my own "Mario César Señoranis Ayala".

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport and your patch.

Could you please point me to a example deb? I have seen debs with incorrect unicode and I want to make this as robust as possible. A example is tests/gdebi-test6.deb in the gdebi source.

Cheers,
 Michael

Changed in gdebi:
assignee: nobody → mvo
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gdebi - 0.3.12

---------------
gdebi (0.3.12) intrepid; urgency=low

  * GDebi/GDebi.py:
    - fix utf-8 disply (LP: #109907)
    - do not crash if the file disappeared in --non-interactive
      mode (LP: #213725)
    - fix incorrect statusline when cache can not be locked
      (LP: #212105)
  * GDebi/DebPackage.py:
    - do not crash when the filelist can not be read because of
      gvfs strangeness (LP: #211822)
  * gdebi-gtk:
    - do not crash when DISPLAY is not accessable (LP: #204543)
  * data/gdebi.desktop.in:
    - add "Startup-Notify=true" (LP: #120920)
  * merge debian fixes (thanks to Amaya Rodrigo Sastre and
    Barry deFreese)

 -- Michael Vogt <email address hidden> Tue, 22 Jul 2008 17:39:47 +0200

Changed in gdebi:
status: Incomplete → Fix Released
Michael Vogt (mvo)
Changed in gdebi:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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