Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Jul 2009 23:10:46 +0200 (CEST)
From:      Alexander Best <alexbestms@math.uni-muenster.de>
To:        <freebsd-questions@freebsd.org>
Subject:   Gtk-WARNING **: Locale not supported by C library.
Message-ID:  <permail-20090701211046f7e55a9d00000876-a_best01@message-id.uni-muenster.de>

next in thread | raw e-mail | index | archive | help
hi there,

i've been getting this warning for ages now:

(process:7757): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.

and really like to get rid of it. i searched google but couldn't find a real
solution. my locale settings are:

LANG=C
LC_CTYPE=de_DE.ISO8859-15
LC_COLLATE=en_GB.ISO8859-15
LC_TIME=de_DE.ISO8859-15
LC_NUMERIC=de_DE.ISO8859-15
LC_MONETARY=de_DE.ISO8859-15
LC_MESSAGES=en_GB.ISO8859-15
LC_ALL=

i've tried various settings and the only way to get rid of the warning is
settings LANG and LC_ALL to "C". if any of the variables isn't set to C the
warning will come up again.

the app that is triggering the warning is firefox. the strange thing is that
all other gtk apps start without this warning except the acrobat reader which
is however a linux app. i thought maybe the problem is being caused by
linux-gtk2 port. i'm using the native freebsd firefox version but since i'm
using linux plugins in firefox they might be causing the gtk warning.

i did a `chroot /compat/linux bash` and ran locale (the linux version). this
is the output:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=C
LC_CTYPE=de_DE.ISO8859-15
LC_NUMERIC=de_DE.ISO8859-15
LC_TIME=de_DE.ISO8859-15
LC_COLLATE=en_GB.ISO8859-15
LC_MONETARY=de_DE.ISO8859-15
LC_MESSAGES=en_GB.ISO8859-15
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

if i set LANG and LC_ALL to "C" under the native freebsd ENV and switch to the
linux ENV locale's (linux version) output looks just fine:

LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C

so i guess the GTK warning is in fact being triggered by the linux-gtk2 port.
can anybody tell me what's wrong with the linux ENV locale settings?

thanks in advance.
alex



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?permail-20090701211046f7e55a9d00000876-a_best01>