Commit 5942e478 authored by Marc Deslauriers's avatar Marc Deslauriers Committed by Andrej Shadura

Imported Debian patch 0.14+20091101-1ubuntu3

parent 3b43484f
python-xlib (0.14+20091101-1ubuntu3) vivid; urgency=medium
* debian/patches/lp1432889.patch: properly decode the xauthority file
into strings instead of byte arrays in Xlib/xauth.py. (LP: #1432889)
-- Marc Deslauriers <marc.deslauriers@ubuntu.com> Tue, 17 Mar 2015 11:17:02 -0400
python-xlib (0.14+20091101-1ubuntu2) saucy; urgency=low
* debian/patches/python3: updated to fix a couple of porting errors
......
Description: properly decode the xauthority file into strings instead of
byte arrays in Xlib/xauth.py
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/python-xlib/+bug/1432889
Author: Marc Deslauriers <marc.deslauriers@canonical.com>
Index: python-xlib-0.14+20091101/Xlib/xauth.py
===================================================================
--- python-xlib-0.14+20091101.orig/Xlib/xauth.py 2015-03-17 11:15:24.108766995 -0400
+++ python-xlib-0.14+20091101/Xlib/xauth.py 2015-03-17 11:16:20.333272353 -0400
@@ -81,7 +81,8 @@
if len(data) != length:
break
- self.entries.append((family, addr, num, name, data))
+ self.entries.append((family, addr.decode('UTF-8'),
+ num.decode('UTF-8'), name.decode('UTF-8'), data))
except struct.error as e:
print ("Xlib.xauth: warning, failed to parse part of xauthority file (%s), aborting all further parsing" % filename)
#pass
......@@ -4,3 +4,4 @@ add-texinfo-dir-entry
fix-ssh-tunnel-auth
fix-rhomboid-examples
python3
lp1432889.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment