aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSushma Rai <rsushma@src.gnome.org>2005-09-30 21:26:29 +0800
committerSushma Rai <rsushma@src.gnome.org>2005-09-30 21:26:29 +0800
commit088e14f6e74dcae2ea14ed11e4a8a4c09e29b260 (patch)
treeb919aefb6ddb5a935b22104006843640ca28e407
parent4537ea47ca77fbaeeae42233e695accec83b8265 (diff)
downloadgsoc2013-evolution-088e14f6e74dcae2ea14ed11e4a8a4c09e29b260.tar
gsoc2013-evolution-088e14f6e74dcae2ea14ed11e4a8a4c09e29b260.tar.gz
gsoc2013-evolution-088e14f6e74dcae2ea14ed11e4a8a4c09e29b260.tar.bz2
gsoc2013-evolution-088e14f6e74dcae2ea14ed11e4a8a4c09e29b260.tar.lz
gsoc2013-evolution-088e14f6e74dcae2ea14ed11e4a8a4c09e29b260.tar.xz
gsoc2013-evolution-088e14f6e74dcae2ea14ed11e4a8a4c09e29b260.tar.zst
gsoc2013-evolution-088e14f6e74dcae2ea14ed11e4a8a4c09e29b260.zip
Not allowing partial comparisons while finding duplicate entries.
Fixes #315034. Patch submitted by "Devashish Sharma <sdevashish@novell.com>". svn path=/trunk/; revision=30443
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/gui/merging/eab-contact-compare.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 9d642c2758..3c2e3bfba3 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,10 @@
+2005-09-30 Devashish Sharma <sdevashish@novell.com>
+
+ * gui/merging/eab-contact-compare.c
+ (name_fragment_match_with_synonyms): Changed name compare logic where
+ it matches names with starting part same. (it matches rob and robert).
+ Fixes #315034.
+
2005-09-30 Sarfraaz Ahmed <asarfraaz@novell.com>
* gui/component/addressbook.c (remove_parameters_from_uri) : This now
diff --git a/addressbook/gui/merging/eab-contact-compare.c b/addressbook/gui/merging/eab-contact-compare.c
index 0c28684f23..60a95c59f3 100644
--- a/addressbook/gui/merging/eab-contact-compare.c
+++ b/addressbook/gui/merging/eab-contact-compare.c
@@ -115,7 +115,7 @@ name_fragment_match_with_synonyms (const gchar *a, const gchar *b, gboolean stri
if (!(a && b && *a && *b))
return FALSE;
- if (name_fragment_match (a, b, strict))
+ if(!e_utf8_casefold_collate (a, b))
return TRUE;
/* Check for nicknames. Yes, the linear search blows. */