GNOME Bugzilla – Bug 416664
"\n" Characters showing up in my Notes
Last modified: 2007-05-02 05:27:59 UTC
Please describe the problem: When I create a Contact with a lot of notes and save it. Reopening the Contact sometimes shows a lot of these "\n" characters and I can't get rid of them by removing them and saving the contact as Evolution will just reapply the characters. If I export the contact to a vcf and edit the vcf, I can sometimes remove them all. But Contacts with lengthy notes, it's impossible as they just reappear in other areas of the notes and more extensive. This seems to be associated with the following debug stdout: (evolution-2.8:7013): libebook-WARNING **: invalid escape, passing it through (I know what the "\n" is, being a newline character. This bug seems to be being produced by Evolution and is somehow messing up "escaping characters"? ... Could this also be a UTF-8 related bug?) Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Most times with Contacts with lengthy notes. Is it possible certain characters (ie. # or / ) are messing up Evolution's character escaping and producing visible "\n"'s. Other information:
Anybody else having this problem or is just me?
Could this be the same as bug #356176?
Might be, but this bug was opened five months after a proposed patch for 2.8 but. But the patch was slated for evolution-data-server-1.*. And they're implying evolution. <shrugs> I'm also using Gentoo and have the package unmasked so I can keep up with releases as they're released. Probably been using evolution-data-server-1.8.3 for the longest time here. :-/ Maybe the patch never made it into the tree?
Might be, but this bug was opened five months after a proposed patch for 2.8 but. But the patch was slated for evolution-data-server-1.*. And they're implying evolution. <shrugs> I'm also using Gentoo and have the package unmasked so I can keep up with releases as they're released. Probably been using evolution-data-server-1.8.3 for the longest time here. :-/ Maybe the patch never made it into the tree? Just checking, here's a clipping from evolution-data-server-1.8.3-r2 source for e-vcard.c. Another warning I get, "invalid escape, passing it through" and the error seems to extremely slow down displaying contacts at times. This another reason I filed the bug. I don't see the patch applied below. (I haven't checked if this is fixed in evolution-data-server-1.10.*.) ---snip--- g_string_append_c (str, a); g_string_append_c (str, b); } lp++; } else if (*lp == '\\') { /* convert back to the non-escaped version of the characters */ lp = g_utf8_next_char(lp); if (*lp == '\0') { g_string_append_c (str, '\\'); break; } switch (*lp) { case 'n': g_string_append_c (str, '\n'); break; case 'N': g_string_append_c (str, '\n'); break; case 'r': g_string_append_c (str, '\r'); break; case 'R': g_string_append_c (str, '\r'); break; case ';': g_string_append_c (str, ';'); break; case ',': g_string_append_c (str, ','); break; case '\\': g_string_append_c (str, '\\'); break; default: g_warning ("invalid escape, passing it through"); g_string_append_c (str, '\\'); g_string_append_unichar (str, g_utf8_get_char(lp)); break; } lp = g_utf8_next_char(lp); }
<bah!> Somehow ... a mid-air collision above. :-/
No, it's not even included in trunk, but I've patched the latest releases in Debian with it. I'm not sure how easy it is to add your own patches when you build for Gentoo..? Maybe you want to be a bit adventurous and try the patch?
ok, after testing, I can confirm this on with evo-2.10, eds-1.10 This is really strange though, after typing in random characters and then copy pasting the same sentence, I got different style of escaping problem. Seeing \n or simply \ and sometimes \ n This is really weird (side thought, the notes field a really small for typing in more than 2 lines).
Yup. Just finished compiling & installing: gnome-extra/evolution-data-server-1.10.1 mail-client/evolution-2.10.1 And the bug is still prevalent. I tried editing the "\n" completely out of the Notes Section by editing both the beginning and ending characters out and the "\n" characters still persist on reopen. I would love to spend some time applying the patch to Gentoo. If I get time today, I might do it. But I'm trying to stay focused (without using ADD drugs) on my LinuxBios project. ;-) I'm surprised the patch hasn't made it into main stream yet. Is it possible, this bug is only persistent on older versions of Evolution? And, after applying the patch, will it "clean" the data field of this unwanted data? Also, I'm guessing the following long delay and error when displaying a contactis printed in relation to this bug: (evolution-2.10:6291): libebook-WARNING **: invalid escape, passing it through
Good work. Let's try to sum it up. *This bug is indeed a duplicate of bug #356176. *It's still present in 1.10.1 (it's a bug in e-d-s, not evo) Now you've got to help me answer the following: *Does the patch fix the bug -so that no new notes have the extra escaping? -so that older notes with extra escaping are "cleaned"? *How do you otherwise "clean" notes that have the extra escaping? *Is the "invalid escape, passing it through"-problem related? To inspect what data is actually in the database, /usr/lib/evolution/2.10/evolution-addressbook-export may be useful.
I've sent a query to the Gentoo bugs on this. I will probably spend time tonight or tomorrow and manually apply the patch myself. If it *cleans* my e-d-s database, you won't hear from me again. ;-) (Just kidding.)
*** This bug has been marked as a duplicate of 356176 ***