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