GNOME Bugzilla – Bug 333698
Evolution can't find mails with some localized subject on Solaris sparc
Last modified: 2013-09-13 00:48:05 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.
Created attachment 60818 [details] Sample message
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.
Created attachment 60882 [details] [review] updated patch Compared to the previous patch, this one change guint32 to gunichar.
Thanks for the patch. Loks fine. Please commit to both HEAD and stable branch
Committed the patch to CVS HEAD and gnome-2-14 brach.