From owner-freebsd-stable@FreeBSD.ORG Mon Oct 3 21:14:06 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA9961065672 for ; Mon, 3 Oct 2011 21:14:06 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 52B458FC15 for ; Mon, 3 Oct 2011 21:14:05 +0000 (UTC) Received: from outgoing.leidinger.net (p4FC4315B.dip.t-dialin.net [79.196.49.91]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id CC11B844016; Mon, 3 Oct 2011 23:13:52 +0200 (CEST) Received: from unknown (IO.Leidinger.net [192.168.1.12]) by outgoing.leidinger.net (Postfix) with ESMTP id 24DCD179F; Mon, 3 Oct 2011 23:13:50 +0200 (CEST) Date: Mon, 3 Oct 2011 23:13:51 +0200 From: Alexander Leidinger To: Chung-Yeol Lee Message-ID: <20111003231351.00007180@unknown> In-Reply-To: References: <20110928121035.568ff6e6@cox.net> <753371317233305@web145.yandex.ru> <20110929175755.GA1694@callisto.augenstein.ten> <4E84BBE3.1090701@protected-networks.net> <20110929195001.GF2677@vim.isi.edu> <20110929200539.GA24098@icarus.home.lan> <20110929214009.GH2677@vim.isi.edu> <20110929220144.GA3204@icarus.home.lan> <20110929231349.GK2677@vim.isi.edu> <20110930212112.00001068@unknown> <20110930193210.GL67578@vim.isi.edu> X-Mailer: Claws Mail 3.7.10cvs7 (GTK+ 2.16.6; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: CC11B844016.A1B44 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1, required 6, autolearn=disabled, ALL_TRUSTED -1.00) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1318281233.85428@ijB8PRKqlAjiv5YttnDV4w X-EBL-Spam-Status: No Cc: freebsd-stable@freebsd.org, Ted Faber , bsam@FreeBSD.org, Jeremy Chadwick Subject: Re: linux-f10-flashplugin (unrelated "Locale not supported" message) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2011 21:14:06 -0000 On Mon, 3 Oct 2011 15:43:41 +0900 Chung-Yeol Lee wrote: > On Sat, Oct 1, 2011 at 4:32 AM, Ted Faber wrote: > > > > On Fri, Sep 30, 2011 at 09:21:12PM +0200, Alexander Leidinger wrote: > > > On Thu, 29 Sep 2011 16:13:50 -0700 Ted Faber > > > wrote: > > > > > > > (process:52979): Gtk-WARNING **: Locale not supported by C > > > > library. Using the fallback 'C' locale. > > > > > > I would expect something like this if you use a valid FreeBSD > > > locale specification which is not valid on Linux. For example on > > > FreeBSD the iso 8859-XX locales have to be written differently. > > > Maybe in your case we have something similar, a locale which > > > exists in FreeBSD with a slightly different name than on Linux > > > (Fedora 10 in the case of the linuxulator). > > > > FWIW, I use: > > > > $ echo $LC_ALL > > en_US.UTF-8 > Usually, I use the following command to generate proper locale files. > > /compat/linux/usr/bin/localedef -i ko_KR -c -f UTF-8 -A > /usr/share/locale/locale.alias ko_KR.UTF-8 > > (I'm using ko_KR.UTF-8 in FreeBSD) > > I think similar things can be done with different locales. Interesting... sort of. You use a linux command and and generate a FreeBSD file? Does it also work if you use /compat/linux/usr/share/locale/locale.alias instead (no such file in the /usr/share/locale directory)? Do you think something like this is correct? foreach LANG in /compat/linux/usr/share/locale/*; do if [ -d $LANG ]; then NAME=$(basename $LANG) foreach ENCDIR in /usr/share/locale/${NAME}.* ]; do ENC=$(echo $ENCDIR | sed -e 's:/usr/share/locale/${NAME}\.::') /compat/linux/usr/bin/localedef -i $NAME -c -f $ENC -A ... \ $NAME.$ENC done fi done If it works with /compat/linux/usr/share/locale/locale.alias, we could add it to the linux_base port. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137