From owner-freebsd-sparc Fri Jan 3 5:30: 8 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 1A72F37B420 for ; Fri, 3 Jan 2003 05:30:06 -0800 (PST) Received: from straylight.ringlet.net (office.sbnd.net [217.75.140.130]) by mx1.FreeBSD.org (Postfix) with SMTP id 9FA7C43EE5 for ; Fri, 3 Jan 2003 05:30:01 -0800 (PST) (envelope-from roam@ringlet.net) Received: (qmail 51972 invoked by uid 1000); 3 Jan 2003 13:29:27 -0000 Date: Fri, 3 Jan 2003 15:29:27 +0200 From: Peter Pentchev To: Olafur Osvaldsson Cc: David O'Brien , freebsd-hackers@freebsd.org, freebsd-sparc@freebsd.org Subject: Re: Locale errors on 5.0-CURRENT (sparc) Message-ID: <20030103132927.GC45645@straylight.oblivion.bg> Mail-Followup-To: Olafur Osvaldsson , David O'Brien , freebsd-hackers@freebsd.org, freebsd-sparc@freebsd.org References: <20030103120057.GI74128@isnic.is> <20030103123141.GA45645@straylight.oblivion.bg> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZwgA9U+XZDXt4+m+" Content-Disposition: inline In-Reply-To: <20030103123141.GA45645@straylight.oblivion.bg> User-Agent: Mutt/1.5.3i 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 --ZwgA9U+XZDXt4+m+ Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 03, 2003 at 02:31:41PM +0200, Peter Pentchev wrote: > On Fri, Jan 03, 2003 at 12:00:57PM +0000, Olafur Osvaldsson wrote: > > Hi, > > I'm having some problems with seting the locale on 5.0 wich I have set > > up on sparc hardware...I'm pretty sure this is not sparc related but if > > so please correct me. > [snip] > >=20 > > When run on the 5.0 system: > >=20 > > # ./locale-test is_IS.ISO8859-1 > > setlocale(LC_ALL, "is_IS.ISO8859-1") returns: (null) > > setlocale(LC_TIME, "is_IS.ISO8859-1") returns: is_IS.ISO8859-1 > > Testing: [???????] >=20 > 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. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence claims to be an Epimenides paradox, but it is lying. --ZwgA9U+XZDXt4+m+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+FZA37Ri2jRYZRVMRAuZ6AJ0epcTsl2CXOT8FboOd8pB7rcKSEACeOLuM AZyNgukAapIxuh/kjuK8IXY= =4P70 -----END PGP SIGNATURE----- --ZwgA9U+XZDXt4+m+-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message