From 780b3d4e20af8809ba71d76c89e006ee3ce08698 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 26 Aug 2005 22:12:19 +0000 Subject: [PATCH] avatar/win32: open with rb so windows are ok --- src/vcard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vcard.py b/src/vcard.py index 3945ce5de..da19d9ba9 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -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)