From owner-freebsd-stable@FreeBSD.ORG Tue Oct 4 10:00:27 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 B4B5A1065676 for ; Tue, 4 Oct 2011 10:00:27 +0000 (UTC) (envelope-from chungyeol.lee@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4ED428FC1E for ; Tue, 4 Oct 2011 10:00:27 +0000 (UTC) Received: by qadz30 with SMTP id z30so189740qad.13 for ; Tue, 04 Oct 2011 03:00:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=rJW2/X2dMMtNUiq3rVvoTx1ru8A1FC1lTpH5oQu/uJI=; b=xLbqZBEelySVNg9w0TqbvmuixCoLL/6NPnqnUBLXiAQlvtXQVg5bDNV/zMIKv382KQ 9iBggr/5yAhcEQFQxGw6FSyAjoirXwuD6Ba/4w33G6DnaDvlgbsVrVHZHtc6vktmpI/u Bir2pqpG9CvdHpLe0TExPOJ0Bd/9HnkztGzJk= MIME-Version: 1.0 Received: by 10.229.32.199 with SMTP id e7mr805381qcd.47.1317722426671; Tue, 04 Oct 2011 03:00:26 -0700 (PDT) Received: by 10.229.138.138 with HTTP; Tue, 4 Oct 2011 03:00:26 -0700 (PDT) In-Reply-To: <20111003231351.00007180@unknown> 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> <20111003231351.00007180@unknown> Date: Tue, 4 Oct 2011 19:00:26 +0900 Message-ID: From: Chung-Yeol Lee To: Alexander Leidinger Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Ted Faber , freebsd-stable@freebsd.org, Jeremy Chadwick , bsam@freebsd.org 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: Tue, 04 Oct 2011 10:00:27 -0000 On Tue, Oct 4, 2011 at 6:13 AM, Alexander Leidinger wrote: > 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. >> >> =A0/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)? When I tried this command I thought I'm generating Linux files. localedef utility reads /compat/linux/usr/share/locale/locale.alias when I specified either /usr/share/locale/locale.alias or /compat/linux/... . Then, it will update /usr/compat/linux/usr/share/locale/locale-archive file= . You can check the avail locales through /compat/linux/usr/bin/locale -a com= mand. > > Do you think something like this is correct? > > foreach LANG in /compat/linux/usr/share/locale/*; do > =A0if [ -d $LANG ]; then > =A0 =A0NAME=3D$(basename $LANG) > =A0 =A0foreach ENCDIR in /usr/share/locale/${NAME}.* ]; do > =A0 =A0 =A0 ENC=3D$(echo $ENCDIR | sed -e 's:/usr/share/locale/${NAME}\.:= :') > =A0 =A0 =A0 /compat/linux/usr/bin/localedef -i $NAME -c -f $ENC -A ... \ > =A0 =A0 =A0 =A0 =A0$NAME.$ENC > =A0 =A0 =A0 done > =A0fi > done > > If it works with /compat/linux/usr/share/locale/locale.alias, we could > add it to the linux_base port. I think this will work. But I'm not sure that it's okay to have all these locales with linux_base port. Thanks, Chung-yeol