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 701850 - folks-DEBUG: phone-details.vala:160: [PhoneDetails.get_normalised] unknown digit: +
folks-DEBUG: phone-details.vala:160: [PhoneDetails.get_normalised] unknown di...
Status: RESOLVED FIXED
Product: folks
Classification: Platform
Component: libfolks
0.9.x
Other Linux
: Normal normal
: Unset
Assigned To: folks-maint
folks-maint
Depends on:
Blocks:
 
 
Reported: 2013-06-08 15:04 UTC by Laurent Bigonville
Modified: 2013-08-02 08:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Keep leading ‘+’s when normalising phone numbers (4.49 KB, patch)
2013-06-16 19:25 UTC, Philip Withnall
committed Details | Review

Description Laurent Bigonville 2013-06-08 15:04:29 UTC
Hi,

When running gnome-contacts with the folks debug messages enabled, I'm getting a log of messages similar to this:

(gnome-contacts:23221): folks-DEBUG: phone-details.vala:108: [PhoneDetails.equal] Comparing 8474136 with 8474136
(gnome-contacts:23221): folks-DEBUG: phone-details.vala:160: [PhoneDetails.get_normalised] unknown digit: +
(gnome-contacts:23221): folks-DEBUG: phone-details.vala:160: [PhoneDetails.get_normalised] unknown digit: +

This is probably due to the fact that my contacts have their phone numbers in the international format (+CCXXXXX)
Comment 1 Philip Withnall 2013-06-16 19:25:36 UTC
Created attachment 246977 [details] [review]
Keep leading ‘+’s when normalising phone numbers

https://www.gitorious.org/folks/folks/commits/701850-phone-country-codes

Looks like the fix for bug #685992 was incomplete. The attached patch fixes it and adds a test case.
Comment 2 Guillaume Desmottes 2013-08-02 07:58:19 UTC
Review of attachment 246977 [details] [review]:

++
Comment 3 Philip Withnall 2013-08-02 08:04:25 UTC
Comment on attachment 246977 [details] [review]
Keep leading ‘+’s when normalising phone numbers

commit e1da1db6af2930e9ed5045d3abb0c73c4f74d26e
Author: Philip Withnall <philip@tecnocode.co.uk>
Date:   Sun Jun 16 20:23:17 2013 +0100

    core: Keep leading ‘+’s when normalising phone numbers
    
    These are needed to indicate country codes for international numbers.
    
    See: https://bugzilla.gnome.org/show_bug.cgi?id=685992
    Closes: https://bugzilla.gnome.org/show_bug.cgi?id=701850

 NEWS                                 |  2 ++
 folks/phone-details.vala             |  5 +++--
 tests/folks/Makefile.am              |  5 +++++
 tests/folks/phone-field-details.vala | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 76 insertions(+), 2 deletions(-)