Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: math and locale



> I am mostly concerned about things like re-opening (or worse, reading) of
> external locale-definition files.

So if the locale is "C" or "POSIX" don't make the second setlocale
call.  Or is there a better solution?

> (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.

Fair enough.

> 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 ...)

Yes.  I thought we were going to implement options/flags to control
such output.

> Where *exactly* would LC_NUMERIC make any difference in pws-9 ?

Anywhere LC_ALL would, except for zzlex now.  What are you asking?



Messages sorted by: Reverse Date, Date, Thread, Author