After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 320237 - bug in the decoding of quoted printable
bug in the decoding of quoted printable
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Contacts
1.6.x (obsolete)
Other All
: Normal major
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
: 322125 (view as bug list)
Depends on:
Blocks: 327516
 
 
Reported: 2005-10-30 14:05 UTC by Felix Egli
Modified: 2006-08-12 13:06 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Patch witch fixes the bug. (682 bytes, patch)
2005-10-30 14:09 UTC, Felix Egli
accepted-commit_now Details | Review

Description Felix Egli 2005-10-30 14:05:26 UTC
Please describe the problem:
The decoding of quoted-printable strings ist not working correctle in
addressbook/libebook/e-vcard.c

The bug can be very easily verified with the program dump-vcard in
addressbook/tests/vcard.

Steps to reproduce:
1. In addressbook/tests/vcard run: ./dump-vcard 5.vcf > 5.vcf.decoded
2. Open 5.vcf.decoded in a hex-editor.
3. Compare the result of the decoding with the original strings.

Actual results:
Each quoted-printable sequence of the form =ab is translated in one 16bit value
instead of in one 8bit value.

Expected results:
Each =ab is one 8bit value 0xab in the output.

Does this happen every time?
yes

Other information:
This patch:
diff -u -r evolution-data-server/addressbook/libebook/e-vcard.c
evolution-data-server.patched/addressbook/libebook/e-vcard.c
--- evolution-data-server/addressbook/libebook/e-vcard.c        2005-09-15
13:49:20.000000000 +0200
+++ evolution-data-server.patched/addressbook/libebook/e-vcard.c       
2005-10-30 10:14:38.000000000 +0100
@@ -236,7 +236,7 @@
                                 */
                        }
                        else if (isxdigit(a) && isxdigit (b)) {
-                               gunichar c;
+                               char c;

                                a = tolower (a);
                                b = tolower (b);
@@ -244,7 +244,7 @@
                                c = (((a>='a'?a-'a'+10:a-'0')&0x0f) << 4)
                                        | ((b>='a'?b-'a'+10:b-'0')&0x0f);

-                               g_string_append_unichar (str, c);
+                               g_string_append_c (str, c);
                        }
                        else
                                {
Comment 1 Felix Egli 2005-10-30 14:09:12 UTC
Created attachment 54081 [details] [review]
Patch witch fixes the bug.
Comment 2 André Klapper 2005-12-06 00:30:37 UTC
also see bug 322125; confirming
Comment 3 Felix Egli 2006-03-21 14:47:43 UTC
I'm a little bit frustrated, because this bug is in the 1.6 release.

Does it make any sense to submit bug reports and fixes? Or is this work worth nothing?

Do the Gnome-Devlopers ignore other languages than english?!

Felix
Comment 4 André Klapper 2006-05-31 12:09:39 UTC
*** Bug 322125 has been marked as a duplicate of this bug. ***
Comment 5 Harish Krishnaswamy 2006-06-07 08:42:51 UTC
Reading the source, W/o testing the fix or knowing more,  Approving this patch for commit to both HEAD and the gnome-2-14 branch.
Addressbook hackers : Please take a look if I should know better.

Felix : Let me know if you cannot commit this directly and if you want me to.
Comment 6 Felix Egli 2006-06-09 05:57:05 UTC
I have no write acess to cvs, so i cannot commit it myself. Please do you commit it. Thanks!
Comment 7 André Klapper 2006-06-13 20:30:32 UTC
Hi Felix, this fix is already covered by the following commit by Devashish which was made four weeks ago: http://cvs.gnome.org/viewcvs/evolution-data-server/addressbook/libebook/e-vcard.c?r1=1.26&r2=1.27

This has been only committed to CVS HEAD (unstable evolution version 2.7.x) though, not to the stable 2.6 version, as it breaks API.
So this will definitely be fixed in the next stable release, Evolution 2.8.

Thanks a lot for your patience. It does make sense to report bugs and to attach patches here and I would like to encourage you to report issues to help improving Evolution and the GNOME Desktop, but the Evolution Team perhaps simply lacks human resources - at least we do encounter a huge amount of traffic in terms of patches and bugs, more than we manage to handle as we would like to. :-/


Harish, Devashish:
Should the attached patch (which does not break API) be committed to the stable branch so it will be included in Evolution 2.6.3? Devashish already committed a more general patch (which includes this partial fix) to CVS HEAD.
Comment 8 Devashish Sharma 2006-06-20 04:58:08 UTC
andre no need to commit this patch , as a more general patch is already committed to head.
Anyway thanks for the patch Felix.
Closing this as fixed.
Comment 9 Felix Egli 2006-06-20 07:04:54 UTC
great! i'm looking forward to evolution 2.8.
thanks.
Comment 10 André Klapper 2006-06-20 08:17:01 UTC
devashish: my question was if this patch should be committed to *stable* as it does not change API but improves the 2.6.x situation.
Comment 11 Devashish Sharma 2006-06-21 06:54:17 UTC
ok andre commit this to stable
Comment 12 André Klapper 2006-08-12 13:06:51 UTC
damn, i slept away the time. obsolete now, as 2.6.3 is already out. :-/