]> git.sthu.org Git - shuber-gentoo-overlay.git/blob - app-misc/pycarddav/files/utf8-decode.patch
b29cedd19babe4b668c342791b7963328e9b2d09
[shuber-gentoo-overlay.git] / app-misc / pycarddav / files / utf8-decode.patch
1 --- a/pycarddav/model.py 2018-04-15 18:49:08.335147745 +0200
2 +++ b/pycarddav/model.py 2018-04-15 18:49:53.957408081 +0200
3 @@ -207,7 +207,13 @@
4
5 @property
6 def fname(self):
7 - return unicode(self['FN'][0][0]) if self['FN'] else ''
8 + utext = self['FN'][0][0] if self['FN'] else ''
9 + try:
10 + utext = unicode(utext, 'utf8')
11 + except TypeError:
12 + pass
13 +
14 + return utext
15
16 @fname.setter
17 def fname(self, value):