From owner-freebsd-sparc Fri Jan 3 10: 1:13 2003 Delivered-To: freebsd-sparc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51AF337B405 for ; Fri, 3 Jan 2003 10:01:12 -0800 (PST) Received: from mail.gmx.net (mail.gmx.net [213.165.65.60]) by mx1.FreeBSD.org (Postfix) with SMTP id ADB2E43E4A for ; Fri, 3 Jan 2003 10:01:09 -0800 (PST) (envelope-from tmoestl@gmx.net) Received: (qmail 7253 invoked by uid 0); 3 Jan 2003 18:01:07 -0000 Received: from p508e635d.dip.t-dialin.net (HELO galatea.local) (80.142.99.93) by mail.gmx.net (mp010-rz3) with SMTP; 3 Jan 2003 18:01:07 -0000 Received: from localhost ([127.0.0.1] helo=galatea.local) by galatea.local with esmtp (Exim 4.10 #1) id 18UW8i-0000y5-00; Fri, 03 Jan 2003 19:01:49 +0100 Received: (from tmm@localhost) by galatea.local (8.12.6/8.12.6/Submit) id h03I1NAo003724; Fri, 3 Jan 2003 19:01:23 +0100 (CET) Date: Fri, 3 Jan 2003 19:01:23 +0100 From: Thomas Moestl To: Peter Pentchev Cc: Olafur Osvaldsson , "David O'Brien" , freebsd-hackers@FreeBSD.org, freebsd-sparc@FreeBSD.org Subject: Re: Locale errors on 5.0-CURRENT (sparc) Message-ID: <20030103180123.GA284@crow.dom2ip.de> Mail-Followup-To: Peter Pentchev , Olafur Osvaldsson , David O'Brien , freebsd-hackers@freebsd.org, freebsd-sparc@freebsd.org References: <20030103120057.GI74128@isnic.is> <20030103123141.GA45645@straylight.oblivion.bg> <20030103132927.GC45645@straylight.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030103132927.GC45645@straylight.oblivion.bg> User-Agent: Mutt/1.4i Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 2003/01/03 at 15:29:27 +0200, Peter Pentchev wrote: > On Fri, Jan 03, 2003 at 02:31:41PM +0200, Peter Pentchev wrote: > > FWIW, I can reproduce this on panther.FreeBSD.org, a sparc64 running > > 5.0-CURRENT as of December 6, 2001. All the other machines in the > > FreeBSD cluster that I could test - ref5 (i386), pluto1 (IA-64), and > > beast (alpha) - are able to set both the is_IS.ISO8859-1 and the > > bg_BG.CP1251 locales correctly for both LC_ALL and LC_TIME. Only the > > sparc64 machine is having trouble setting LC_ALL for any locale I tried. > > Actually, I seem to have found the reason: on panther.FreeBSD.org, there > are no LC_CTYPE files for any locale, and setlocale(LC_ALL) attempts to > load, well, *all* locale type definitions, including LC_CTYPE. Thus, it > would (and does) return NULL with errno set to ENOENT for all locales... > > The LC_CTYPE files are not there, because there is an explicit test for > the build architecture in src/share/Makefile, which excludes the > mklocale directory for sparc64; it was introduced in rev. 1.27 by David > O'Brien about 7 months ago. David, what exactly was the 'bad juju' > mentioned in the commit message, and is it still there? A test run of > 'cvs up share/mklocale && cd share/mklocale && make' on panther seemed > to complete OK; I have not yet tested the resulting locale files though. Yeah, I just noticed that, too. As far as I can tell, this is purely historical, if I remember correctly mklocale did crash back then. I will re-enable it. - Thomas -- Thomas Moestl http://www.tu-bs.de/~y0015675/ http://people.FreeBSD.org/~tmm/ PGP fingerprint: 1C97 A604 2BD0 E492 51D0 9C0F 1FE6 4F1D 419C 776C To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message