From owner-freebsd-gnome@FreeBSD.ORG Sat Jul 3 08:49:52 2010 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CC48106566C; Sat, 3 Jul 2010 08:49:52 +0000 (UTC) (envelope-from fidaj@ukr.net) Received: from fsm1.ukr.net (fsm1.ukr.net [195.214.192.23]) by mx1.freebsd.org (Postfix) with ESMTP id 472D68FC16; Sat, 3 Jul 2010 08:49:52 +0000 (UTC) Received: from [193.239.178.194] (helo=localhost) by fsm1.ukr.net with esmtps ID 1OUyQ0-00009b-Qs ; Sat, 03 Jul 2010 11:49:48 +0300 Date: Sat, 3 Jul 2010 11:49:48 +0300 From: Ivan Klymenko To: "Mikhail T." Message-ID: <20100703114948.0a7d7f83@ukr.net> In-Reply-To: <4C2EAEF2.1030501@aldan.algebra.com> References: <4C2A4E53.8050408@aldan.algebra.com> <4C2A75DB.4030109@aldan.algebra.com> <4C2B626D.5000503@aldan.algebra.com> <4C2E9B03.4070406@freebsd.org> <4C2EAEF2.1030501@aldan.algebra.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: gnome@freebsd.org, Joe Marcus Clarke , portmgr@freebsd.org Subject: Re: a GTK-using application crashes, when LANG is set to non-UTF8 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jul 2010 08:49:52 -0000 =D0=92 Fri, 02 Jul 2010 23:30:58 -0400 "Mikhail T." =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > Joe Marcus Clarke =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=B2(=D0=BB=D0=B0= ): > >> -CONFIGURE_ENV=3D CPPFLAGS=3D"-I${LOCALBASE}/include" \ > >> +CONFIGURE_ENV=3D CFLAGS=3D"-D__STDC_ISO_10646__" \ > >> + CPPFLAGS=3D"-I${LOCALBASE}/include" \ > >> =20 > >> > >> Or, perhaps, this can be controlled by the the glib20-port's > >> "COLLATION_FIX" knob? If so, then it should be set /on/ by > >> default... > >> > >> Would it speed things up, if I file an (urgent) PR regarding this? > >> I think, it would be prudent to ship 8.1 with this problem > >> resolved... Please, advise. Thanks! > >> =20 > > > > What affects does this have on UTF-8 locales? I briefly read > > through the related Solaris bug, and it seems like adding this > > definition could cause crashes for UTF-8 users. > > =20 > I believe, Ivan tested both on his system -- he own charset is usually > UTF-8. Ivan, could you confirm, please? > That said, I don't think, the Solaris bug mentions crashes for UTF-8 > users either way... >=20 > We need a solution of some sort. I'm surprised, this hasn't been > reported yet... The utf8_collate function in glib, pretty much, has > two different implementations #ifdef-ed by the __STDC_ISO_10646__. Can > anybody on this thread ask the glib developers, what the right use of > the define is? >=20 > Thanks! >=20 > -mi >=20 >=20 >=20 On my system when applying the patch Cairo-Dokka works successfully when the system has any of the locales: ru_RU.KOI8-R or ru_RU.UTF-8