Fench coders encoding : UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3

Bug #1016284 reported by mAn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Quickly
New
Undecided
Unassigned

Bug Description

When i run quickly (on ubuntu 12.04) i obtain this error (i'm french) :

Traceback (most recent call last):
  File "/usr/share/quickly/templates/ubuntu-application/share.py", line 127, in <module>
    print(_("%s does not exist. Please create it on launchpad if you want to push a package to it. %s has the following ppas available:") % (e, ppa_user.name))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 15: ordinal not in range(128)
ERREUR: la commande share a échoué

I propose this patch :
file url : /usr/share/quickly/templates/ubuntu-application/share.py
ligne : 127
{{{
username = ppa_user.name
if isinstance(username, str):
    username = unicode(ppa_user.name, "utf8")
    print(_(u"%s does not exist. Please create it on launchpad if you want to push a package to it. %s has the following ppas available:" % (e, username)))
}}}
instead of :
{{{
    print(_("%s does not exist. Please create it on launchpad if you want to push a package to it. %s has the following ppas available:" % (e, username)))
}}}

So now the showndown contest can start :D, vote for us on : http://www.reddit.com/r/ubuntuappshowdown/comments/vcif1/app_submission_bookmarks_manager/ or follow us https://twitter.com/#!/ShowMyFaves

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.