From owner-freebsd-arch Sat Nov 3 7:27:12 2001 Delivered-To: freebsd-arch@freebsd.org Received: from straylight.ringlet.net (discworld.nanolink.com [217.75.135.248]) by hub.freebsd.org (Postfix) with SMTP id 5084A37B417 for ; Sat, 3 Nov 2001 07:27:07 -0800 (PST) Received: (qmail 51919 invoked by uid 1000); 3 Nov 2001 15:26:54 -0000 Date: Sat, 3 Nov 2001 17:26:54 +0200 From: Peter Pentchev To: Cyrille Lefevre Cc: Giorgos Keramidas , Dag-Erling Smorgrav , arch@FreeBSD.ORG Subject: Re: POSIX character class support for 1Tawk Message-ID: <20011103172654.F3551@straylight.oblivion.bg> Mail-Followup-To: Cyrille Lefevre , Giorgos Keramidas , Dag-Erling Smorgrav , arch@FreeBSD.ORG References: <20011103145700.E4464@hades.hell.gr> <200111031511.fA3FBYs82494@gits.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200111031511.fA3FBYs82494@gits.dyndns.org>; from clefevre@citeweb.net on Sat, Nov 03, 2001 at 04:11:34PM +0100 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Nov 03, 2001 at 04:11:34PM +0100, Cyrille Lefevre wrote: > Giorgos Keramidas wrote: > > On Sat, Nov 03, 2001 at 04:49:33PM +0200, Peter Pentchev wrote: > > > On Sat, Nov 03, 2001 at 02:35:15PM +0000, Giorgos Keramidas wrote: > > > [snip] > > > > $ env LC_LANG=el_GR LC_ALL=el_GR.ISO8859-7 ./blah > > > > Using NULL: false > > > > Using getenv(): true > > > > > > > > In the second case, of having the proper locale setup in the > > > > environment, only when getenv() is used to retrieve the proper value > > > > for setlocale() the GREEK_ALPHA character is recognized from isalpha() :/ > > > > > > Well, I implicitly assumed that LC_ALL was set, as by the FreeBSD sample > > > 'russian' login.conf entry: it defines the 'lang' attribute, which > > > sets LANG, which setlocale(3) interprets as an LC_ALL setting. > > > > Aye, my mistake. > > With proper defaults, and "", this works. > > You are right :) > > I suppose this only work under -current, I am right ? Um.. no. The 'russian' login class is in -stable, and I've been using a suitably modified 'bulgarian' login class for the past six months. G'luck, Peter -- I've heard that this sentence is a rumor. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message