List Info

Thread: Adding locales under linux emulation




Adding locales under linux emulation
user name
2007-11-22 05:13:51
Hi,

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:

rootsmdev:~# /compat/linux/usr/bin/locale -a
C
POSIX

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?

Thanks in advance
-- 
Renato Botelho
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

Re: Adding locales under linux emulation
country flaguser name
Russian Federation
2007-11-23 09:54:38
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:

> rootsmdev:~# /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     rootlocalhost:/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
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

Re: Adding locales under linux emulation
user name
2007-11-24 09:13:56
On Nov 23, 2007 1:54 PM, Boris Samorodov <bsamipt.ru> 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:
>
> > rootsmdev:~# /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     rootlocalhost:/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
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )