From owner-freebsd-questions Sat Jan 19 1:31:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from richard.eu.org (adsl-213-190-39-118.takas.lt [213.190.39.118]) by hub.freebsd.org (Postfix) with ESMTP id C304C37B400 for ; Sat, 19 Jan 2002 01:31:11 -0800 (PST) Received: (from rch@localhost) by richard.eu.org (8.11.0/8.11.6) id g0J9V2S97747 for freebsd-questions@FreeBSD.ORG; Sat, 19 Jan 2002 11:31:02 +0200 (EET) (envelope-from rch@richard.eu.org) Date: Sat, 19 Jan 2002 11:31:02 +0200 From: Richard =?utf-8?B?xIxlcGFz?= To: freebsd-questions@FreeBSD.ORG Subject: Re: utf-8 locales in freebsd ? Message-ID: <20020119093102.GO77146@richard.eu.org> References: <20020119063710.GA2750@foo31-249.visit.se> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20020119063710.GA2750@foo31-249.visit.se> User-Agent: Mutt/1.3.25i X-OS: FreeBSD 4.5-RC i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit On Sat Jan 19 07:37:11 2002 +0100 Martin Karlsson wrote: >Hi list. Is there such a thing as UTF-8 locales for freebsd? > >I have utf fonts, but, changing my LC_CTYPE from sv_SE.DIS_8859-15 to >sv_SE.UTF-8 doesn't seem to do what I want; it results in me no longer >being able to type Swedish national chars. > >Anyone know about this? > Hi, You need to do something like this using your locale name, LOCALEDIR is /usr/share/locale: install -d ${LOCALEDIR}/lt_LT.UTF-8/ ln -fs ../la_LN.ASCII/LC_COLLATE ${LOCALEDIR}/lt_LT.UTF-8/LC_COLLATE mklocale -o ${LOCALEDIR}/lt_LT.UTF-8/LC_CTYPE attached_file/lt_LT.UTF-8.src grep -v '^#' ${LOCALEDIR}/lt_LT.UTF-8/LC_TIME Making 0x80 - 0x9F characters printable probably is not needed, but I'm not sure. This doesn't add complete wchar functions set, but most programs do not require this. It works with xterm, KDE (after editing ~/.kde/share/config/kdeglobals & ~/.kde/share/config/kxkbrc), vim 6, gimp, mozilla (after editing /usr/X11R6/lib/mozilla/res/unixcharset.properties). It's a pity most unices have utf-8 locales out of the box but not *BSD. -- ☻ Ričardas Čepas ☺ http://unicode.richard.eu.org/me/rch/ll.html --Qxx1br4bt0+wmkIi Content-Type: application/x-wais-source Content-Disposition: attachment; filename="lt_LT.UTF-8.src" Content-Transfer-Encoding: quoted-printable /*=0A * LOCALE_CTYPE for the UTF-8 Locale=0A *=0A * $Id: lt_LT.UTF-8.src,v = 1.0 1998/07/23 15:21:39 rch Exp $=0A */=0A=0AENCODING "UTF2"=0AVARIABLE = ISO 10646 character set=0A=0A#=0A# This is a comment=0A#=0AALPHA 'A' -= 'Z' 'a' - 'z' =0ACONTROL 0x00 - 0x1f 0x7f=0ADIGIT '0' - '9'=0AGRAPH 0x2= 1 - 0x7e 0x80 - 0xffff=0ALOWER 'a' - 'z' =0APUNCT 0x21 - 0x2f 0x3a - 0x40= 0x5b - 0x60 0x7b - 0x7e =0A 0xa4 0xa7 0xa8 0xad 0xaf 0xb0 0xb2 0xb4 0x2c7= 0xb8=0A 0xd7 0xf7 0x2d9 0x2010 -0x2044=0ASPACE 0x09 - 0x0d 0x20 0xa0 0x2= 002 - 0x2006 0x2009 0x200a=0AUPPER 'A' - 'Z' =0AXDIGIT 'a' - 'f' 'A' - 'F= '=0ABLANK ' ' '\t' 0xa0=0APRINT 0x20 - 0x7e 0xa0 - 0xffff=0A# IDEOGRAM=0A= # SPECIAL=0A# PHONEGRAM=0A=0AMAPLOWER <'A' - 'Z' : 'a'>=0AMAPLOWER = <'a' - 'z' : 'a'>=0AMAPUPPER <'A' - 'Z' : 'A'>=0AMAPUPPER = <'a' - 'z' : 'A'>=0ATODIGIT <'0' - '9' : 0>=0ATODIGIT <'A'= - 'F' : 10>=0ATODIGIT <'a' - 'f' : 10>=0A --Qxx1br4bt0+wmkIi-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message