Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jan 2002 13:04:52 +0100
From:      Martin Karlsson <martin.karlsson@visit.se>
To:        freebsd-questions@freebsd.org
Subject:   Re: utf-8 locales in freebsd ?
Message-ID:  <20020119120452.GB24350@foo31-249.visit.se>

next in thread | raw e-mail | index | archive | help
[forgot CC:ing the list]

Hey, it works! Thanks for taking the time to help me out!


On Sat Jan 19, 2002 at 12:54:14PM +0200, Richard Cepas wrote:
>        Here is my commands another way around:
> /home/rch #su3# mkdir /usr/share/locale/sv_SE.UTF-8
> /home/rch #su3# iconv -f iso-8859-1 -t utf-8 
> </usr/share/locale/sv_SE.ISO8859-1/LC_TIME 
> >/usr/share/locale/sv_SE.UTF-8/LC_TIME
> /home/rch #su3# LANG=sv_SE.UTF-8 date
> Lör 19 Jan 2002 12:37:46 EET
> # now we have date working.  Note - the above command output may look with 
> to characters instead of accented o if you terminal is iso 8859-1.  If you 
> have FreeBSD before 4.5, your locale is named sv_SE.ISO_8859-1, not 
> sv_SE.ISO8859-1
> # Going with LC_CTYPE, assuming that you have saved ctype source file I had 
> attached in previous messate in /tmp/
> /home/rch #su3# mklocale -o /usr/share/locale/sv_SE.UTF-8/LC_CTYPE 
> /tmp/lt_LT.UTF-8.src
> /home/rch #su3# echo $?
> 0
> # it ok, now we need LC_COLLATE but FreeBSD don't have it for multibyte 
> locales, so do fake symlink instead:
> /home/rch #su3# ln -fs ../la_LN.ASCII/LC_COLLATE 
> /usr/share/locale/sv_SE.UTF-8/LC_COLLATE
> /home/rch #su3# ls -l /usr/share/locale/sv_SE.UTF-8/
> total 273
> lrwxrwxr-x  1 root  wheel      25 Sau 19 12:46 LC_COLLATE@ -> 
> ../la_LN.ASCII/LC_COLLATE
> -rw-rw-r--  1 root  wheel  264323 Sau 19 12:44 LC_CTYPE
> -rw-rw-r--  1 root  wheel     373 Sau 19 12:37 LC_TIME
> 
>        Now try something:
> /home/rch #su3# LANG=sv_SE.UTF-8 gimp
>        Hmm, it messages doesn't look good in different charset..  You need 
>        to install devel/gettext-devel:
> /usr/ports/devel/gettext-devel #su3# cd /usr/ports/devel/gettext-devel/
> /usr/ports/devel/gettext-devel #su3# make WANT_FULL_GETTEXT=1
> /usr/ports/devel/gettext-devel #su3# make install WANT_FULL_GETTEXT=1
>        Now edit /usr/local/share/gettext/intl/config.charset and add:
> sv_SE.UTF-8 UTF-8
> in that file, the library accompanying gnu gettext is dumb enough not 
> figure that from LANG.
> 
>        Enjoy!

-- 
Martin Karlsson
		<martin.karlsson at visit.se>

----- End forwarded message -----


-- 
Martin Karlsson
		<martin.karlsson at visit.se>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020119120452.GB24350>