From owner-freebsd-i18n Sun Sep 15 7:31:30 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0CA2C37B401 for ; Sun, 15 Sep 2002 07:31:29 -0700 (PDT) Received: from terra.inf.ufsc.br (terra.inf.ufsc.br [150.162.60.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFFCA43E75 for ; Sun, 15 Sep 2002 07:31:26 -0700 (PDT) (envelope-from maianeto@inf.ufsc.br) Received: from localhost (localhost [127.0.0.1]) by terra.inf.ufsc.br (Departamento de Informatica e Estatistica (INE/CTC/UFSC)) with ESMTP id 84C2B174B2 for ; Sun, 15 Sep 2002 08:42:03 -0300 (BRT) Received: from screammer (inf185.inf.ufsc.br [150.162.60.185]) by terra.inf.ufsc.br (Departamento de Informatica e Estatistica (INE/CTC/UFSC)) with ESMTP id 991CD174D4 for ; Sun, 15 Sep 2002 08:41:56 -0300 (BRT) From: "Luiz Rodrigues Maia Neto" To: freebsd-i18n@freebsd.org Date: Mon, 15 Sep 2003 11:45:16 -0300 MIME-Version: 1.0 Subject: subscribe Reply-To: maianeto@inf.ufsc.br Message-ID: <3F65A64C.23083.9087118@localhost> X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Virus-Scanned: by AMaViS 0.3.12pre5 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG subscribe maianeto@inf.ufsc.br To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Wed Sep 18 10:46:46 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6D6F37B401 for ; Wed, 18 Sep 2002 10:46:44 -0700 (PDT) Received: from smtp1.dnainternet.net (smtp1.dnainternet.net [62.240.72.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06E0F43E42 for ; Wed, 18 Sep 2002 10:46:44 -0700 (PDT) (envelope-from vezku@surfeu.fi) Received: from [212.86.25.240] ([212.86.25.240]:50318 "EHLO surfeu.fi" TLS-CIPHER: ) by smtp1.dnainternet.net with ESMTP id ; Wed, 18 Sep 2002 20:46:34 +0300 Message-ID: <3D88BBFF.5010802@surfeu.fi> Date: Wed, 18 Sep 2002 20:46:39 +0300 From: Vesa Alho Reply-To: vezku@surfeu.fi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-i18n@FreeBSD.ORG Subject: freebsd/bash 8bit support Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hey fellow freebsd users, I just subscribed to this list. I've searched google and freebsd mailing list archives and finally I need to turn to you guys. I'm experiencing problems with the 8-bit character set(s) on freebsd (4.6.2). I want to use ISO-8859-1 (or -15) set on my box and I've managed to set the following: ------------------------- /etc/rc.conf keymap="finnish.cp850" ------------------------- what's the difference between cp850 and iso maps? iso does not work, but cp850 does. this is for bash (which i use for shell): ------------------------- /etc/profile LC_ALL=fi_FI.ISO8859-1; export LC_ALL LC_CTYPE=fi_FI.ISO8859-1; export LC_CTYPE LANG=fi_FI; export LANG # even tried the old way set meta-flag on set convert-meta off set input-meta on set output-meta on ------------------------- Okay, with these settings bash does have 8bit support. Problems: 1. pine 8bit support does not work in local box(even iso-8859-1 defined in pine conf). 2. When I ssh to another box, for example a linux box it complains about wrong terminal (cons25l1, changed it at /etc/ttys) type. I change it to vt100 and still the 8bit support does not work on remote box. I suspect the problem is freebsd terminal (cons25l1) settings. This is annoying coz in linux I didn't even have to think about these... Some sort of automation would be cool (like a line in rc.conf). :-) Summary: any good URL to give for step-by-step info? Thanks in advance. !****************************************! ! Vesa Alho ! ! Linux/BSD SysAdmin ! !****************************************! ! Despite the high cost of living, it ! ! remains a popular item. ! !****************************************! All mail scanned for viruses. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Wed Sep 18 15: 0: 5 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7DE837B404 for ; Wed, 18 Sep 2002 15:00:03 -0700 (PDT) Received: from polaris.we.lc.ehu.es (polaris.we.lc.ehu.es [158.227.6.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AC7643E42 for ; Wed, 18 Sep 2002 15:00:02 -0700 (PDT) (envelope-from jose@we.lc.ehu.es) Received: from v-ger.we.lc.ehu.es (lxpx531.lx.ehu.es [158.227.27.177]) by polaris.we.lc.ehu.es (8.11.6/8.11.6) with ESMTP id g8ILxqD17873; Wed, 18 Sep 2002 23:59:53 +0200 (MET DST) Received: from v-ger.we.lc.ehu.es (localhost [127.0.0.1]) by v-ger.we.lc.ehu.es (8.12.3/8.12.3) with ESMTP id g8IM0i1I000477; Thu, 19 Sep 2002 00:00:44 +0200 (CEST) (envelope-from jose@v-ger.we.lc.ehu.es) Received: (from jose@localhost) by v-ger.we.lc.ehu.es (8.12.3/8.12.3/Submit) id g8IM0hj7000476; Thu, 19 Sep 2002 00:00:43 +0200 (CEST) Date: Thu, 19 Sep 2002 00:00:43 +0200 From: "Jose M. Alcaide" To: Vesa Alho Cc: freebsd-i18n@FreeBSD.ORG Subject: Re: freebsd/bash 8bit support Message-ID: <20020918220043.GB260@v-ger.we.lc.ehu.es> References: <3D88BBFF.5010802@surfeu.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D88BBFF.5010802@surfeu.fi> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 4.6-RELEASE Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Sep 18, 2002 at 08:46:39PM +0300, Vesa Alho wrote: > I just subscribed to this list. I've searched google and freebsd mailing > list archives and finally I need to turn to you guys. > > I'm experiencing problems with the 8-bit character set(s) on freebsd > (4.6.2). I want to use ISO-8859-1 (or -15) set on my box and I've > managed to set the following: > > ------------------------- > /etc/rc.conf > keymap="finnish.cp850" > ------------------------- > what's the difference between cp850 and iso maps? iso does not work, but > cp850 does. > > this is for bash (which i use for shell): > ------------------------- > /etc/profile > LC_ALL=fi_FI.ISO8859-1; export LC_ALL > LC_CTYPE=fi_FI.ISO8859-1; export LC_CTYPE > LANG=fi_FI; export LANG I don't know about finnish keymaps, but this is the configuration I use for spanish console localization: - /etc/rc.conf: keymap="spanish.iso15.acc" font8x8="iso15-8x8" font8x14="iso15-8x14" font8x16="iso15-8x16" (the "spanish.iso15" keymap is like the "spanish.iso" one, except that the former maps the Euro symbol to Alt-E). - /etc/login.conf ("default" entry): :lang=es_ES.ISO8859-15:\ :charset=ISO8859-15:\ and type "cap_mkdb /etc/login.conf" after modifying it. Also, remove the LANG and LC_* definitions from /etc/profile. - /etc/ttys: Substitute "cons25l1" for "cons25" in the ttyv? entries. If you connect to another machine which is not running FreeBSD, the "cons25" and "cons25l1" are unlikely to be known. Use "ansi" instead in those cases. Hope this helps, JMA -- ****** Jose M. Alcaide // jose@we.lc.ehu.es // jmas@FreeBSD.org ****** ** "Beware of Programmers who carry screwdrivers" -- Leonard Brandwein ** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Thu Sep 19 11:16:33 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59C0237B401 for ; Thu, 19 Sep 2002 11:16:32 -0700 (PDT) Received: from smtp1.dnainternet.net (smtp1.dnainternet.net [62.240.72.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FC7C43E4A for ; Thu, 19 Sep 2002 11:16:31 -0700 (PDT) (envelope-from vezku@surfeu.fi) Received: from [212.86.25.240] ([212.86.25.240]:50376 "EHLO surfeu.fi" TLS-CIPHER: ) by smtp1.dnainternet.net with ESMTP id ; Thu, 19 Sep 2002 21:16:01 +0300 Message-ID: <3D8A146F.3070808@surfeu.fi> Date: Thu, 19 Sep 2002 21:16:15 +0300 From: Vesa Alho Reply-To: vezku@surfeu.fi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-i18n@FreeBSD.ORG Subject: solved - freebsd/bash 8bit support! References: <3D88BBFF.5010802@surfeu.fi> <20020918220043.GB260@v-ger.we.lc.ehu.es> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanx Jose for tips, here's my setup now: /etc/rc.conf keymap="finnish.iso" font8x8="iso-8x8" font8x14="iso-8x14" font8x16="iso-8x16" /etc/login.conf finnish|Finnish:\ :charset=ISO-8859-1:\ :lang=fi_FI.ISO_8859-1:\ :tc=default: Also needed to follow instructions at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-localization.html Specially the following part: "Changing Login Classes with vipw(8) Use vipw to add new users, and make the entry look like this: user:password:1111:11:language:0:0:User Name:/home/user:/bin/sh" Finally it works. That freebsd doc was correct, but I defined wrong charset (several similar available). !****************************************! ! Vesa Alho ! ! Linux/BSD SysAdmin ! !****************************************! ! I'm an incorrigible punster, so don't ! ! corrige me! ! !****************************************! All mail scanned for viruses. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Fri Sep 20 13: 2:40 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B12337B401; Fri, 20 Sep 2002 13:02:39 -0700 (PDT) Received: from columbus.cris.net (columbus.cris.net [212.110.128.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id F105F43E3B; Fri, 20 Sep 2002 13:02:28 -0700 (PDT) (envelope-from phantom@ark.cris.net) Received: from ark.cris.net (root@ark.cris.net [212.110.128.68]) by columbus.cris.net (8.9.3/8.9.3) with ESMTP id XAA99129; Fri, 20 Sep 2002 23:02:17 +0300 (EEST) Received: (from phantom@localhost) by ark.cris.net (8.11.1/8.11.1) id g8KK2Jw89738; Fri, 20 Sep 2002 23:02:19 +0300 (EEST) Date: Fri, 20 Sep 2002 23:02:19 +0300 From: Alexey Zelkin To: ache@freebsd.org Cc: i18n@freebsd.org Subject: setlocale() fallback behaviour Message-ID: <20020920230219.A88895@ark.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i X-Operating-System: FreeBSD 3.5-STABLE i386 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Andrey, Today I have found an issue with current setlocale() code. If LANG is set to incorrect value, LC_ALL is unset and some of LC_* variables set to correct value call to setlocale(LC_ALL, "") will fail because of incorrect LANG value. I.e. having LANG=invalid LC_TIME=ru_RU.KOI8-R with call setlocale(LC_ALL, "") we'll get completely "C" defaulting locale. Looking for comment in rev 1.30 of setlocale.c (that quotes POSIX standard) user may expect that LC_TIME is initialized in this case, but it is not. : The values of locale categories shall be determined by a precedence : order; the first condition met below determines the value: : : 1. If the LC_ALL environment variable is defined and is not null, : the value of LC_ALL shall be used. : 2. If the LC_* environment variable (LC_COLLATE, LC_CTYPE, LC_MESSAGES, : LC_MONETARY, LC_NUMERIC, LC_TIME) is defined and is not null, the : value of the environment variable shall be used to initialize the : category that corresponds to the environment variable. : 3. If the LANG environment variable is defined and is not null, the : value of the LANG environment variable shall be used. : 4. If the LANG environment variable is not set or is set to the empty : string, the implementation-defined default locale shall be used. I think this one need to be corrected. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message From owner-freebsd-i18n Fri Sep 20 14:41:38 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE51537B401; Fri, 20 Sep 2002 14:41:37 -0700 (PDT) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59D7443E65; Fri, 20 Sep 2002 14:41:36 -0700 (PDT) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.5/8.12.5) with ESMTP id g8KLfWnd018285; Sat, 21 Sep 2002 01:41:34 +0400 (MSD) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.5/8.12.5/Submit) id g8KLfVWn018284; Sat, 21 Sep 2002 01:41:31 +0400 (MSD) (envelope-from ache) Date: Sat, 21 Sep 2002 01:41:30 +0400 From: "Andrey A. Chernov" To: Alexey Zelkin Cc: i18n@freebsd.org Subject: Re: setlocale() fallback behaviour Message-ID: <20020920214129.GA17859@nagual.pp.ru> References: <20020920230219.A88895@ark.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020920230219.A88895@ark.cris.net> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Sep 20, 2002 at 23:02:19 +0300, Alexey Zelkin wrote: > > with call setlocale(LC_ALL, "") we'll get completely "C" defaulting > locale. According to POSIX test suite, LC_ALL must fail if ANY of sub-LC's is invalid. "Upon successful completion, setlocale ( ) shall return the string associated with the specified category for the new locale. Otherwise, setlocale ( ) shall return a null pointer and the program's locale is not ^^^^^^^^^^^^^^^^^^^^^^^^^^ changed." ^^^^^^^^^ -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message