avatar/win32: open with rb so windows are ok
This commit is contained in:
parent
f2a7430619
commit
780b3d4e20
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ class VcardWindow:
|
||||||
% f,
|
% f,
|
||||||
_('The file must not be more than 8 kilobytes.')).get_response()
|
_('The file must not be more than 8 kilobytes.')).get_response()
|
||||||
return
|
return
|
||||||
fd = open(f)
|
fd = open(f, 'rb')
|
||||||
data = fd.read()
|
data = fd.read()
|
||||||
pixbufloader = gtk.gdk.PixbufLoader()
|
pixbufloader = gtk.gdk.PixbufLoader()
|
||||||
pixbufloader.write(data)
|
pixbufloader.write(data)
|
||||||
|
|
Loading…
Add table
Reference in a new issue