From owner-freebsd-questions@FreeBSD.ORG Wed Jul 1 21:10:48 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6F2D1065677 for ; Wed, 1 Jul 2009 21:10:48 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out3.uni-muenster.de (ZIVM-OUT3.UNI-MUENSTER.DE [128.176.192.18]) by mx1.freebsd.org (Postfix) with ESMTP id 6B5A48FC0A for ; Wed, 1 Jul 2009 21:10:48 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.42,328,1243807200"; d="scan'208";a="7317465" Received: from zivmaildisp2.uni-muenster.de (HELO ZIVMAILUSER05.UNI-MUENSTER.DE) ([128.176.188.143]) by zivm-relay3.uni-muenster.de with ESMTP; 01 Jul 2009 23:10:46 +0200 Received: by ZIVMAILUSER05.UNI-MUENSTER.DE (Postfix, from userid 149459) id BE781614001; Wed, 1 Jul 2009 23:10:46 +0200 (CEST) Date: Wed, 01 Jul 2009 23:10:46 +0200 (CEST) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Gtk-WARNING **: Locale not supported by C library. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2009 21:10:49 -0000 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