~ubuntu-branches/ubuntu/quantal/gwibber/quantal

« back to all changes in this revision

Viewing changes to debian/patches/lp_38667.patch

  • Committer: Package Import Robot
  • Author(s): Ken VanDine
  • Date: 2012-05-17 17:11:26 UTC
  • Revision ID: package-import@ubuntu.com-20120517171126-k8dvk1nempslz4jr
Tags: 3.4.1-0ubuntu3
* debian/patches/lp_38667.patch
  - facebook: Don't crash on unicode characters in a username (LP: #938667)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
=== modified file 'gwibber/microblog/plugins/facebook/gtk/facebook/__init__.py'
 
2
--- old/gwibber/microblog/plugins/facebook/gtk/facebook/__init__.py     2012-03-07 21:17:19 +0000
 
3
+++ new/gwibber/microblog/plugins/facebook/gtk/facebook/__init__.py     2012-04-27 15:03:16 +0000
 
4
@@ -158,7 +158,7 @@
 
5
           if isinstance(acct, dict):
 
6
             if acct.has_key("id") and acct.has_key("name"):
 
7
               self.account["uid"] = acct["id"]
 
8
-              self.account["username"] = acct["name"]
 
9
+              self.account["username"] = acct["name"].encode("utf-8")
 
10
               saved = self.dialog.on_edit_account_save()
 
11
           else:
 
12
             print "Failed"
 
13