zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <schizo@debian.org>
To: Bart Schaefer <schaefer@candle.brasslantern.com>
Cc: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: math and locale
Date: Sun, 21 Nov 1999 13:14:32 -0500	[thread overview]
Message-ID: <19991121131432.C31314@dman.com> (raw)
In-Reply-To: <991120205331.ZM15647@candle.brasslantern.com>; from schaefer@candle.brasslantern.com on Sat, Nov 20, 1999 at 08:53:31PM +0000

> 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.
On the other hand, a few string comparisons followed by setlocale is
potentially even worse for those using other than C/POSIX.

GNU libc seems to have an "extended locale model" allowing strtod to
take a locale argument; however, this is neither portable nor standardized.

I'm also beginning to wonder if prev_locale won't get clobbered somehow.

> I also wonder whether "C" would not be a better choice than "POSIX" here.

On sheer byte count or by some other criterion?


  reply	other threads:[~1999-11-21 18:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-20 20:18 Clint Adams
1999-11-20 20:53 ` Bart Schaefer
1999-11-21 18:14   ` Clint Adams [this message]
1999-11-22  8:17     ` Bart Schaefer
1999-11-22 14:42       ` Clint Adams
1999-11-22 18:23         ` Bart Schaefer
1999-11-22 19:36           ` Clint Adams
1999-11-22 20:03           ` Zefram
1999-11-23 18:18             ` Bart Schaefer
1999-11-26 22:08             ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19991121131432.C31314@dman.com \
    --to=schizo@debian.org \
    --cc=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).