On Thu, 28 Sep 2006, Dominique Michel wrote: > Another way will be to test the locale in use, and sed the value to > change the point against a comma when needed. But I have no idea where I > can test the locale.
I have never played with locales, quite hate them and happily stick to the C locale, but shouldn't be there an environment variable to test OR CHANGE, and could one not bracket such setenv in a subshell like (setenv XXXX=yyy ; command) ? I've used the trick for timezones, e.g. to know the time in Iceland one could (setenv TZ :/usr/share/zoneinfo/Atlantic/Reykjavik ; date) I do that (in sh syntax because of the SSI include directives) e.g. in http://sax.iasf-milano.inaf.it/~lucio/WWW/Personal/timezones.html <!--#exec cmd="TZ=:/usr/share/zoneinfo/Atlantic/Reykjavik ; export TZ ; date"--> ---------------------------------------------------------------------------- Lucio Chiappetti - INAF/IASF - via Bassini 15 - I-20133 Milano (Italy) For more info : http://www.iasf-milano.inaf.it/~lucio/personal.html ----------------------------------------------------------------------------
