Re: linux-f10-flashplugin (unrelated "Locale not supported" mess

看板FB_stable作者時間14年前 (2011/10/04 18:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/6 (看更多)
On Tue, Oct 4, 2011 at 6:13 AM, Alexander Leidinger <Alexander@leidinger.net> wrote: > On Mon, 3 Oct 2011 15:43:41 +0900 Chung-Yeol Lee > <chungyeol.lee@gmail.com> wrote: > >> On Sat, Oct 1, 2011 at 4:32 AM, Ted Faber <faber@isi.edu> 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 <faber@isi.edu> >> > > 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 _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
文章代碼(AID): #1EYk2cSl (FB_stable)
討論串 (同標題文章)
文章代碼(AID): #1EYk2cSl (FB_stable)