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: Mon, 22 Nov 1999 14:36:01 -0500	[thread overview]
Message-ID: <19991122143601.A8551@dman.com> (raw)
In-Reply-To: <991122182320.ZM22621@candle.brasslantern.com>; from schaefer@candle.brasslantern.com on Mon, Nov 22, 1999 at 06:23:20PM +0000

> I'm trying to come up with a circumstance in which zsh would "print" or
> otherwise output a number in a format that zzlex would then fail to read.
> I tried setting LC_ALL to a few different things and then doing "echo $x"
> where x is a floating-point parameter, but it never changed anything.
> Where else might it matter?  Output of process times or cpu percentages?
> Can we make an exhaustive list?  Or am I worrying about it too much?

No, this is a definite problem.

% LC_ALL=pl_PL
% typeset -f g
% ((g=4.4))
% echo $g
4,4000000000
% ((g=$g + 3))
% echo $g
4,0000000000


And also:

% LC_ALL=de_DE
% echo $g
4,0000000000
% ((g=8.3))
% echo $g  
8,3000000000
% printf "%f\n" $g  
printf: 8,3000000000: value not completely converted
8.000000
% export LC_ALL
% printf "%f\n" $g
8,300000


printf is GNU sh-utils.

As for process times:

% time sync
sync  0,00s user 0,00s system 0% cpu 0,125 total


Anything that uses convfloat() will be affected.
I can't find anything else.


  reply	other threads:[~1999-11-22 19:36 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
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 [this message]
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=19991122143601.A8551@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).