From owner-freebsd-gnome@FreeBSD.ORG Sat Jul 3 02:06:08 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 0D826106566C; Sat, 3 Jul 2010 02:06:08 +0000 (UTC) (envelope-from marcus@freebsd.org) Received: from av-tac-rtp.cisco.com (hen.cisco.com [64.102.19.198]) by mx1.freebsd.org (Postfix) with ESMTP id 9F46E8FC15; Sat, 3 Jul 2010 02:06:07 +0000 (UTC) X-TACSUNS: Virus Scanned Received: from rooster.cisco.com (localhost.cisco.com [127.0.0.1]) by av-tac-rtp.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id o6325wT3000406; Fri, 2 Jul 2010 22:05:58 -0400 (EDT) Received: from wsip-70-165-206-80.lv.lv.cox.net (jclarke-pc.cisco.com [172.18.254.236]) by rooster.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id o6325tfb022952; Fri, 2 Jul 2010 22:05:57 -0400 (EDT) Message-ID: <4C2E9B03.4070406@freebsd.org> Date: Fri, 02 Jul 2010 22:05:55 -0400 From: Joe Marcus Clarke Organization: FreeBSD, Inc. User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: "Mikhail T." References: <4C2A4E53.8050408@aldan.algebra.com> <4C2A75DB.4030109@aldan.algebra.com> <4C2B626D.5000503@aldan.algebra.com> In-Reply-To: <4C2B626D.5000503@aldan.algebra.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: gnome@freebsd.org, 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 02:06:08 -0000 On 6/30/10 11:27 AM, Mikhail T. wrote: > 29.06.2010 18:38, I wrote: >> 29.06.2010 15:49, I wrote: >>> A user I support is struggling with an application (cairo-dock + >>> plugins), that crashes inside gtk/glib (stack below), when the LANG >>> environment variable is set to something like ru_RU.KOI8-R. >>> >>> Using ru_RU.UTF-8 works fine and the application speaks Russian in >>> both GUI and (rather chatty) stderr/stdout. I suspect, some common >>> mistake is made by the application's author -- any chance, we can >>> quickly patch it up in the port? >> This seems like a similar problem: >> >> http://defect.opensolaris.org/bz/show_bug.cgi?id=11936 > Ivan -- the maintainer of the cairo-dock ports (CC-ed) -- has confirmed, > that compiling devel/glib20 with -D__STDC_ISO_10646__ eliminates the > crash and allows the application (cairo-dock) to come up and properly > "speak" in the requested language using the non-UTF charset: > > -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ > +CONFIGURE_ENV= CFLAGS="-D*__STDC_ISO_10646__*" \ > + CPPFLAGS="-I${LOCALBASE}/include" \ > > > 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! 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. Joe -- Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome