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

Reported by mAn on 2012-06-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Quickly
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  Edit
Everyone can see this information.

Other bug subscribers