Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: math and locale
- X-seq: zsh-workers 8758
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: math and locale
- Date: Tue, 23 Nov 1999 18:18:21 +0000
- In-reply-to: <E11pzgZ-00082P-00@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <E11pzgZ-00082P-00@xxxxxxxxxxxxxxxxxx>
On Nov 22, 8:03pm, Zefram wrote:
} Subject: Re: PATCH: math and locale
}
} If we do wish zsh itself to use locales, I see several possibilities:
}
} * We can do what POSIX defines for most utilities (not sure what it
} says about sh): guarantee sensible behaviour in the "POSIX" locale,
} and leave it undefined everywhere else. Strictly speaking, if you
} want the standard form of output from most POSIX utilities, you have
} to set LC_ALL=POSIX for it.
}
} * We can use the selected locale for LC_MESSAGES, which only affects
} things that are definitely for human consumption, and leave everything
} else using the "C" locale. This would have almost exactly the desired
} effect for zsh, and is trivially easy to implement.
}
} * We can try to do it properly: decide which things should be
} locale-dependent and which shouldn't.
It sounds like we already have the first one, that the second one might be
preferable, and that the third one is going to be hard to implement and
even harder to document clearly.
I suggest that we first find out what POSIX says about shells in this
regard (Zoltan? Are you out there?), and then choose whichever of the
first two gets us closest to that.
Then we worry about how to get all the way to POSIX (if we aren't) *after*
the next major release (3.2 or whatever it will be, not the next 3.1.x).
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author