From owner-freebsd-emulation@FreeBSD.ORG Sat Nov 24 15:13:58 2007 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEC2916A421 for ; Sat, 24 Nov 2007 15:13:58 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.freebsd.org (Postfix) with ESMTP id 6CF6E13C50F for ; Sat, 24 Nov 2007 15:13:58 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so129227nfb for ; Sat, 24 Nov 2007 07:13:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=/Zwcg3sh0SBm79YH6yvh3SolW9VIWc03uAB8Gh98XEY=; b=DyWBpzukMdKpfXHlNKK7p9BvbexqJETjGyZABNUAnB5SgAvCU4V1z8jcdnqaxxmO7/zdduplIqhtKDRc0QYn4QIESv2dbsrJF95tmX5mkmriwPXcw72MdDUB8CnwO1SwYFzbMXLYxeAOaJNPb/TZ38jSZt3lAMyms3VapmQRQc8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tDoxu9Xc23pzjXBkmKKp4yVmYd2VQ+nBxmlbwV7Dy+PB9fueGKgo+frq8+LvxcblwofUR2g67dBehZl/bnd1f7foJoUWpk4Gmdid4Xxz36+dnSydKIek1bkUTGAY0P/mJykhzTGEid5VEO7W41KzLJ0jgSrtewxNrf4mwDX4VoA= Received: by 10.78.21.7 with SMTP id 7mr401266huu.1195917236939; Sat, 24 Nov 2007 07:13:56 -0800 (PST) Received: by 10.78.43.19 with HTTP; Sat, 24 Nov 2007 07:13:56 -0800 (PST) Message-ID: <747dc8f30711240713n110ed3d7r700cce8c3394e391@mail.gmail.com> Date: Sat, 24 Nov 2007 13:13:56 -0200 From: "Renato Botelho" To: "Boris Samorodov" In-Reply-To: <54972289@ipt.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <747dc8f30711220313s366dc83fm9662e1813d91a9dc@mail.gmail.com> <54972289@ipt.ru> Cc: freebsd-emulation@freebsd.org Subject: Re: Adding locales under linux emulation X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Nov 2007 15:13:58 -0000 On Nov 23, 2007 1:54 PM, Boris Samorodov wrote: > On Thu, 22 Nov 2007 09:13:51 -0200 Renato Botelho wrote: > > > We are using some linux binaries under linux emulation on FreeBSD 7.x. > > These aplications are using gettext for multi-language, but, jus t "C" > > and "POSIX" are supported on linux emulation: > > > root@smdev:~# /compat/linux/usr/bin/locale -a > > C > > POSIX > > Can't reproduce it here: > ----- > localhost% uname -a > FreeBSD localhost 7.0-BETA3 FreeBSD 7.0-BETA3 #2: Thu Nov 22 01:14:27 MSK 2007 root@localhost:/usr/obj/usr/src/sys/MOOS i386 > > localhost% /compat/linux/usr/bin/locale -a | wc -l > 362 > > localhost% sysctl -a | grep linux > hw.snd.compat_linux_mmap: 0 > compat.linux.oss_version: 198144 > compat.linux.osrelease: 2.4.2 > compat.linux.osname: Linux > > localhost% ls -ld /var/db/pkg/linux_* > drwxr-xr-x 2 root wheel 512 15 .$(B'_'`'q.(B 23:53 /var/db/pkg/linux_base-fc-4_10 > ----- > > > I took a look at /compat/linux/usr/share/locale and a lot of other > > locales are available there, how can I add these to the system? > > The linuxulator searches for files with /compat/linux/ prefix first > and then (if none found) without this prefix. It seems to me that if > you have corresponding locale files all should work out of the box. I'm using linux_base-f7 here, i fixed my problem creating the locale with localedef, it's working fine now. Thanks -- Renato Botelho