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 333698 - Evolution can't find mails with some localized subject on Solaris sparc
Evolution can't find mails with some localized subject on Solaris sparc
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.6.x (obsolete)
Other Solaris
: Normal critical
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2006-03-07 06:48 UTC by Xiurong Simon Zheng
Modified: 2013-09-13 00:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Sample message (589 bytes, application/x-compressed-tar)
2006-03-07 06:48 UTC, Xiurong Simon Zheng
  Details
Traversing strings by UTF-8 character order (2.27 KB, patch)
2006-03-07 07:20 UTC, Xiurong Simon Zheng
none Details | Review
updated patch (2.27 KB, patch)
2006-03-08 02:30 UTC, Xiurong Simon Zheng
accepted-commit_now Details | Review

Description Xiurong Simon Zheng 2006-03-07 06:48:16 UTC
Please describe the problem:
Using search bar, can't find mails whose subjects contain some localized characters.

Steps to reproduce:
1. Invoke evolution on ja_JP.UTF-8.
2. Choose [File] -> [New] -> [Mail Message] and open [Compose a message].
3. Input the own mail address in To: field.
4. Input Japanese chars in Subject: field.
   e.g. Input Ctrl + Space and change the status to Kanji mode.
        Input 't', 'e', 's', 'u', 't', 'o'
        Input Space, Return key and then Japanese string; U+30C6, U+30B9 and
U+30C8 is determined.
5. Sent the email to myself.
6. Choose [Actions] -> [Send/Receive] and receive the mail.
7. Select [INBOX] icon in Folder pane.
8. Focus on [Subject contains] field and input the above string; U+30C6, U+30B9
and U+30C8 and Return key.


Actual results:
Then the mail cannot be found.

Expected results:
the corresponding mail can be found.

Does this happen every time?
Yes.

Other information:
This sometimes happens on Chinese and French too.
Comment 1 Xiurong Simon Zheng 2006-03-07 06:48:51 UTC
Created attachment 60818 [details]
Sample message
Comment 2 Xiurong Simon Zheng 2006-03-07 07:20:21 UTC
Created attachment 60821 [details] [review]
Traversing strings by UTF-8 character order

To avoid break the complete utf8 characters, traversing strings by utf8 character order rather than one by one byte.
Comment 3 Xiurong Simon Zheng 2006-03-08 02:30:04 UTC
Created attachment 60882 [details] [review]
updated patch

Compared to the previous patch, this one change guint32 to gunichar.
Comment 4 parthasarathi susarla 2006-04-04 08:03:19 UTC
Thanks for the patch. Loks fine. Please commit to both HEAD and stable branch
Comment 5 Xiurong Simon Zheng 2006-04-05 03:40:28 UTC
Committed the patch to CVS HEAD and gnome-2-14 brach.