[patch] glib20, UTF-8 and string collation

Alexandre "Sunny" Kovalenko alex.kovalenko at verizon.net
Wed Jan 9 08:55:24 PST 2008


I have seen recent commit WRT string collation in devel/glib20 by
marcus, so I have decided to check if there is an interest to fix SEGV
in g_utf8_collate when it is given 8-bit non-UTF-8 string(s) to collate.

Good (but by no means only) example of this would be using Evolution to
open mailbox with the mix of KOI-8, CP1251 and UTF-8 message subjects
and order them by the subject. Admittedly, I do not know whether there
are special symbols that trigger the situation or any mix would do. vova
at fbsd ru posted test case mailbox under the link below.

Full discussion including my first approach to fix this problem could be
found here

http://bugzilla.gnome.org/show_bug.cgi?id=492389

Slightly different approach is attached to this E-mail.

Without either patch, my Evolution will core dump on start-up. 

First patch was rejected by gnome folks with the recommendation "Don't
do that", which, unfortunately, is not that easy to follow ;)

Any comments from people with the knowledge of gnome, UTF-8 and string
collation will be greatly appreciated.

I am not subscribed to ports@, please, make sure to keep me on CC list
when replying.

-- 
Alexandre "Sunny" Kovalenko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gunidecomp.c.patch
Type: text/x-patch
Size: 714 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20080109/8945164c/gunidecomp.c.bin


More information about the freebsd-gnome mailing list