Package: gnokii Severity: serious Version: 0.6.26.dfsg-2 Tags: patch Hi,
gnokii seems to be missing iconv support, breaking the opensync plugin for any non-ascii user data: On Mon, Oct 06, 2008 at 10:37:16PM +0400, Al Nikolov wrote: > ?? ??????, 06/10/2008 ?? 20:11 +0200, Michael Banck ??????????: > > On Sun, Oct 05, 2008 at 08:33:47PM +0400, Al Nikolov wrote: > > > > On Sun, Oct 05, 2008 at 07:36:43PM +0400, Al Nikolov wrote: > > > > > Probably it's a bug in opensync-plugin-gnokii, but i'm not sure since > > > > > the gnokii itself does thing right: > > > > > [EMAIL PROTECTED]:~$ gnokii --getphonebook SM 1 > > > > > GNOKII Version 0.6.26 > > > > > 1. Name: ????????????.?????? > > > > > Caller group: None > > > > > General number: 3363090 > > > > > But if opensync-plugin-gnokii is paired with for instance > > > > > opensync-plugin-file in a multisync group, unicode strings > > > > > aren't more supported: > > > > > [EMAIL PROTECTED]:~$ cat nokia-backup/gnokii-contact-SM-1 > > > > > BEGIN:VCARD > > > > > VERSION:2.1 > > > > > FN:??????.??? > > > > > N:;??????.???;;; > > > > > TEL;VOICE:3363090 > > > > > END:VCARD > > > > > The same happens when pairing with opensync-plugin-evolution. > > > > You didn't say whether you're using Debian or Ubuntu, and which > > > > version thereof. > > > Oh, sorry! It's Debian testing: [...] > > OK, can you please add the following repository to your sources.list, > > and upgrade the gnokii packages: > > deb http://people.debian.org/~mbanck/opensync-gnokii/ ./ > > and let me know whether that fixes it for you. > Yes, that did it! Unicode supported well now. Thanks! The attached proposed patch by Johan Kiviniemi from the Ubuntu bug tracker (LP: #278195) is what worked fine for the user, and seems to be the least invasive thing to do in order to fix this in lenny, please apply. thanks, Michael
diff -u gnokii-0.6.26.dfsg/debian/rules gnokii-0.6.26.dfsg/debian/rules --- gnokii-0.6.26.dfsg/debian/rules +++ gnokii-0.6.26.dfsg/debian/rules @@ -7,6 +7,10 @@ CFLAGS = -Wall -g #LDFLAGS = -Wl,--as-needed,-z,defs +# Workaround LP #278195 "Incorrect encoding for the synchronized entries"; +# fixed in gnokii 0.6.27. +CFLAGS += -DHAVE_ICONV=1 -DICONV_CONST= + ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else