From owner-freebsd-emulation@FreeBSD.ORG Fri Nov 23 15:54:43 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 48F5416A417 for ; Fri, 23 Nov 2007 15:54:43 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id DED4613C467 for ; Fri, 23 Nov 2007 15:54:42 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from [85.172.12.76] (helo=localhost.my.domain) by services.ipt.ru with esmtpa (Exim 4.54 (FreeBSD)) id 1IvarZ-00021D-SF; Fri, 23 Nov 2007 18:54:41 +0300 To: "Renato Botelho" References: <747dc8f30711220313s366dc83fm9662e1813d91a9dc@mail.gmail.com> From: Boris Samorodov Date: Fri, 23 Nov 2007 18:54:38 +0300 In-Reply-To: <747dc8f30711220313s366dc83fm9662e1813d91a9dc@mail.gmail.com> (Renato Botelho's message of "Thu\, 22 Nov 2007 09\:13\:51 -0200") Message-ID: <54972289@ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Fri, 23 Nov 2007 15:54:43 -0000 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. WBR -- bsam