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 364618 - Chinese characters can't be synced between Palm and Evolution
Chinese characters can't be synced between Palm and Evolution
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Do Not Use
2.6.x (obsolete)
Other Solaris
: Normal normal
: ---
Assigned To: Veerapuram Varadhan
Evolution QA team
Depends on: 385443
Blocks:
 
 
Reported: 2006-10-24 04:59 UTC by Jerry Yu
Modified: 2013-09-13 12:31 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
patch for this bug (19.00 KB, patch)
2006-10-24 05:03 UTC, Jerry Yu
none Details | Review
patch for this bug (16.39 KB, patch)
2006-12-26 07:17 UTC, Jerry Yu
none Details | Review
application patch (12.39 KB, patch)
2007-01-04 05:25 UTC, Jerry Yu
reviewed Details | Review
new patch (17.38 KB, patch)
2007-09-04 10:15 UTC, Jerry Yu
none Details | Review
patch reworked due to gnome-pilot upgrading to 2.0.16 (17.22 KB, patch)
2008-02-29 08:49 UTC, Jerry Yu
none Details | Review
rework the patch based on the master (20.67 KB, patch)
2009-05-31 10:05 UTC, Jeff Cai
reviewed Details | Review
Reworked the patch per as your suggestions (30.35 KB, patch)
2009-11-30 10:05 UTC, Jeff Cai
none Details | Review

Description Jerry Yu 2006-10-24 04:59:51 UTC
Please describe the problem:
Chinese characters can't be synced between Palm and Evolution.The words synced from Palm display as garbage codes in Evolution, and the words synced from evolution  display as marks "???" in Palm.


Steps to reproduce:
Connect Palm Treo600 with Sparc machine by USB port. Install NV22 and Gnome Pilot pkgs for USB port in Sparc machine.
1.Write some Chinese words on To Do List in Palm and some different Chinese words on Tasks in Evolution on Solaris platform.
2.Enable synchronization at the EToDo conduit in Pilot Settings.
3.The words synced from Palm display as garbage codes in Evolution, and the words synced from evolution  display as marks "???" in Palm.


Actual results:
The words synced from Palm display as garbage codes in Evolution, and the words synced from evolution  display as marks "???" in Palm.

Expected results:
The word can be synced successfully between Palm and evolution.

Does this happen every time?
yes/

Other information:
Comment 1 Jerry Yu 2006-10-24 05:03:18 UTC
Created attachment 75280 [details] [review]
patch for this bug
Comment 2 Jerry Yu 2006-12-26 07:17:41 UTC
Created attachment 78893 [details] [review]
patch for this bug
Comment 3 Jerry Yu 2007-01-04 05:25:21 UTC
Created attachment 79357 [details] [review]
application patch

It currently works on pilot-link-0.11.8 as well as pilot-link-0.12.x and is based on the patch for gnome-pilot's bug(385443).
Comment 4 Veerapuram Varadhan 2007-01-08 15:34:27 UTC
Patch looks good.  Once patch in bug#285443 gets committed, I will take it in.  Thanks, Jerry.
Comment 5 Jerry Yu 2007-01-17 04:55:37 UTC
The patch in bug#385443 was committed.
Comment 6 Jerry Yu 2007-09-04 10:15:09 UTC
Created attachment 94911 [details] [review]
new patch

In the evolution 2.11.92 tarball, two functions which called e_pilot_utf8_to_pchar() and e_pilot_utf8_from_pchar() were added. One is e_pilot_local_category_to_remote() for the conversion from an evolution category to a palm category. The other is e_pilot_remote_category_to_local() for the conversion from a palm category to an evolution category. So I remade a patch to adapt the modification in evolution tarball.
Comment 7 Jerry Yu 2008-02-29 08:49:05 UTC
Created attachment 106230 [details] [review]
patch reworked due to gnome-pilot upgrading to 2.0.16
Comment 8 Jeff Cai 2009-05-31 10:05:24 UTC
Created attachment 135650 [details] [review]
rework the patch based on the master
Comment 9 Milan Crha 2009-11-27 11:13:08 UTC
I'm not able to test this, but patch looks good, very straightforward, so I say yes, commit it to master. Only make few changes to it:
a) use 'gchar' instead of 'char', please
b) if your function takes a parameter, then make it 'const gchar *',
   not 'gchar *', unless the function itself is supposed to change content
   of that variable.
c) do not define the charset as a global variable, make it part of ctx structure

If not sure, feel free to update patch here, otherwise commit to master with above changes. Thanks.
Comment 10 Jeff Cai 2009-11-30 10:05:48 UTC
Created attachment 148722 [details] [review]
Reworked the patch per as your suggestions
Comment 11 Jeff Cai 2009-11-30 10:15:06 UTC
Committed the patch to master.