From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20529 invoked from network); 22 Nov 1999 08:17:42 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 22 Nov 1999 08:17:42 -0000 Received: (qmail 7824 invoked by alias); 22 Nov 1999 08:17:20 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8712 Received: (qmail 7817 invoked from network); 22 Nov 1999 08:17:18 -0000 From: "Bart Schaefer" Message-Id: <991122081713.ZM18376@candle.brasslantern.com> Date: Mon, 22 Nov 1999 08:17:13 +0000 In-Reply-To: <19991121131432.C31314@dman.com> Comments: In reply to Clint Adams "Re: PATCH: math and locale" (Nov 21, 1:14pm) References: <19991120151807.A22546@dman.com> <991120205331.ZM15647@candle.brasslantern.com> <19991121131432.C31314@dman.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: math and locale MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 21, 1:14pm, Clint Adams wrote: } Subject: Re: PATCH: math and locale } } > I'm mildly concerned that setting and restoring the locale is an excessive } > overhead, especially if it's a no-op (prev_local is already "POSIX" or "C"). } > Can anyone reassure me? } } I see that the setlocale code is a bit meatier than I would have expected. I am mostly concerned about things like re-opening (or worse, reading) of external locale-definition files. } I'm also beginning to wonder if prev_locale won't get clobbered somehow. Oo, ick. } > I also wonder whether "C" would not be a better choice than "POSIX" here. } } On sheer byte count or by some other criterion? (1) That it's more likely to be supported correctly, and (2) that it is after all C-like expression parsing that math.c is attempting to peform. It further occurs to me that it might be bad even to have output formatting controlled by LC_NUMERIC, given the tendency of scripts to do things like eval $(print ...) Where *exactly* would LC_NUMERIC make any difference in pws-9 ? -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com