Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Jul 2009 00:52:18 +0200 (CEST)
From:      Alexander Best <alexbestms@math.uni-muenster.de>
To:        <freebsd-emulation@freebsd.org>
Subject:   Gtk-WARNING **: Locale not supported by C library. (fwd)
Message-ID:  <permail-2009070822521880e26a0b00007832-a_best01@message-id.uni-muenster.de>

next in thread | raw e-mail | index | archive | help
  This is a MIME encoded multipart message.

--+permail-2009070822521880e26a0b00007832-a_best01+
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

hi there. i wrote this message to freebsd-questions@ but didn't get a reply.
maybe someone here can help me with this problem.

cheers.
alex

--+permail-2009070822521880e26a0b00007832-a_best01+
Content-Type: message/rfc822; charset=us-ascii
Content-Description: Gtk-WARNING **: Locale not supported by C library. (fwd)

Date: Wed, 01 Jul 2009 23:10:46 +0200 (CEST)
From: Alexander Best <alexbestms@math.uni-muenster.de>
Sender: <a_best01@uni-muenster.de>
Organization: Westfaelische Wilhelms-Universitaet Muenster
Subject: Gtk-WARNING **: Locale not supported by C library.
To: <freebsd-questions@freebsd.org>
Message-ID: <permail-20090701211046f7e55a9d00000876-a_best01@message-id.uni-muenster.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-UID: 155
Status: RO
Content-Length: 2115

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


--+permail-2009070822521880e26a0b00007832-a_best01+--



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