Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jul 2010 13:29:01 -0400
From:      Joe Marcus Clarke <marcus@freebsd.org>
To:        "Mikhail T." <mi+thun@aldan.algebra.com>
Cc:        gnome@freebsd.org, portmgr@freebsd.org
Subject:   Re: a GTK-using application crashes, when LANG is set to non-UTF8
Message-ID:  <4C38ADDD.8050809@freebsd.org>
In-Reply-To: <4C2B626D.5000503@aldan.algebra.com>
References:  <4C2A4E53.8050408@aldan.algebra.com> <4C2A75DB.4030109@aldan.algebra.com> <4C2B626D.5000503@aldan.algebra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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!

I added the macro after some basic UTF-8 testing, but I missed this:

http://www.freebsd.org/cgi/query-pr.cgi?pr=148450

Unless you or Ivan want to hunt down a fix, I'm thinking of reverting
the change.

Joe

> 
>     -mi
> 


-- 
Joe Marcus Clarke
FreeBSD GNOME Team	::	gnome@FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome



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