openbsd-ports/net/gajim/patches/patch-src_vcard_py
jolan 02b7ab86d8 gajim-0.8.2, jabber client written in PyGtk
thanks to fgsch@ for the python help/patches
2005-10-20 04:20:27 +00:00

16 lines
479 B
Plaintext

$OpenBSD: patch-src_vcard_py,v 1.1.1.1 2005/10/20 04:20:28 jolan Exp $
--- src/vcard.py.orig Wed Oct 19 01:27:17 2005
+++ src/vcard.py Wed Oct 19 01:27:32 2005
@@ -165,7 +165,10 @@ class VcardWindow:
response = dialog.run()
if response == gtk.RESPONSE_OK:
f = dialog.get_filename()
- f = f.decode(sys.getfilesystemencoding())
+ try:
+ f = f.decode(sys.getfilesystemencoding())
+ except:
+ pass
if self.image_is_ok(f):
ok = True
else: