[patch] glib20, UTF-8 and string collation

Joe Marcus Clarke marcus at marcuscom.com
Wed Jan 9 17:16:18 PST 2008

On Wed, 2008-01-09 at 19:40 -0500, Alexandre "Sunny" Kovalenko wrote:
> On Wed, 2008-01-09 at 12:35 -0500, Joe Marcus Clarke wrote: 
> > On Wed, 2008-01-09 at 10:53 -0500, Alexandre "Sunny" Kovalenko wrote:
> > > 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.
> > 
> > Any commits I have made in the area of UTF-8 are completely accidental.
> > I am not the UTF-8 guy.  Both bland and jylefort have expressed interest
> > in this.  Perhaps one of them will comment.
> I hope so. Just in case, they would decide to, I have reduced the
> situation to the small program below. I get 
> GLib-CRITICAL **: g_convert: assertion `str != NULL' failed
> and no core dump from this simple program, whereas Evolution manages to
> pass NULL to strcoll further down in g_utf8_collate and get SEGV for its
> pains.

That sounds like a no-no for Evolution to be dereferencing a NULL
pointer.  Hopefully they'd fix this to prevent the problem.

> Conversely, if the answer still is "Evolution should not have done
> that", I will happily crawl back under my rock and keep my patch
> locally.

I can't imagine you're alone in this.  But then again, any Cyrillic mail
that comes my way is always spam, so what do I know.


PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20080110/e01e6ecc/attachment.pgp

More information about the freebsd-ports mailing list