From owner-freebsd-questions@FreeBSD.ORG Mon Jul 12 22:20:38 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5D5616A4E8 for ; Mon, 12 Jul 2004 22:20:38 +0000 (GMT) Received: from minerva.int.gov.br (nat.int.gov.br [200.20.196.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F50F43D67 for ; Mon, 12 Jul 2004 22:20:30 +0000 (GMT) (envelope-from jonny@jonny.eng.br) Received: from [10.0.8.17] (jonny.int.gov.br [10.0.8.17]) by minerva.int.gov.br (Postfix) with ESMTP id 39073BE580 for ; Mon, 12 Jul 2004 19:20:28 -0300 (BRT) Message-ID: <40F30EAC.1090708@jonny.eng.br> Date: Mon, 12 Jul 2004 19:20:28 -0300 From: =?ISO-8859-1?Q?Jo=E3o_Carlos_Mendes_Lu=EDs?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: pt-br, en-us, en, pt MIME-Version: 1.0 To: questions@freebsd.org X-Enigmail-Version: 0.84.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Locale data X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2004 22:20:39 -0000 Hi, I'm not sure what should be the right behavior. If I do not select a locale charset, strftime does not work right. FreeBSD 4.10: minerva::root locale [2445] LC_ALL=en_US date +"%x" 07/12/04 minerva::root locale [2446] LC_ALL=pt_BR date +"%x" 07/12/04 minerva::root locale [2447] LC_ALL=pt_BR.ISO8859-1 date +"%x" 12/07/2004 minerva::root locale [2448] Linux: cerbero::root jonny [1010] LC_ALL=en_US date +"%x" 07/12/2004 cerbero::root jonny [1011] LC_ALL=pt_BR date +"%x" 12-07-2004 cerbero::root jonny [1012] LC_ALL=pt_BR.ISO8859-1 date +"%x" 12-07-2004 cerbero::root jonny [1013] (Note that / is the right separator, Linux is buggy in this aspect) Shouldn't the locale select the best charset if it is not defined? I have problems with this in third party applications. They just set locale as pt_BR and dont give me a choice of adding a charset extension. What should I do? Is this a FreeBSD bug?