Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Jan 2008 12:35:04 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        "Alexandre \"Sunny\" Kovalenko" <alex.kovalenko@verizon.net>
Cc:        ports@freebsd.org, gnome@freebsd.org, Alexander Nedotsukov <bland@freebsd.org>
Subject:   Re: [patch] glib20, UTF-8 and string collation
Message-ID:  <1199900104.304.28.camel@shumai.marcuscom.com>
In-Reply-To: <1199893999.756.29.camel@RabbitsDen>
References:  <1199893999.756.29.camel@RabbitsDen>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-VemPnshHAVr639ushSdb
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


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.

>=20
> 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.
>=20
> Full discussion including my first approach to fix this problem could be
> found here
>=20
> http://bugzilla.gnome.org/show_bug.cgi?id=3D492389
>=20
> Slightly different approach is attached to this E-mail.

I'm not sure why the malloc and copy.  Why not just use g_strdup()?

>=20
> Without either patch, my Evolution will core dump on start-up.=20
>=20
> First patch was rejected by gnome folks with the recommendation "Don't
> do that", which, unfortunately, is not that easy to follow ;)
>=20
> Any comments from people with the knowledge of gnome, UTF-8 and string
> collation will be greatly appreciated.

I'm hoping someone like bland chimes in here.  Touching glib in such a
way makes me nervous, but bland has had experience, especially with
Cyrillic, so maybe he can offer some additional tips or insight.

Joe

--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-VemPnshHAVr639ushSdb
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQBHhQXEb2iPiv4Uz4cRAgnPAKCjG2DNvrzU8MJNG7UGt3qoUytI0ACbB6cK
+IuJ047ghlGithkFbovyQxw=
=ztkG
-----END PGP SIGNATURE-----

--=-VemPnshHAVr639ushSdb--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1199900104.304.28.camel>