On Wed, Jul 14, 2010 at 10:32:43PM +0100, Ethan Grammatikidis wrote:
On 14 Jul 2010, at 18:56, nico wrote:
Hmm, actually I never had problems setting the locale. I always have
LANG and LC_MESSAGES set to en_US.UTF-8 so language is still english
and the other variables are set to de_DE.UTF-8 so information many
apps do rely on like paper size, currency, punctuation (the fail in my
case), address format and stuff like that is correct. So I'm just
going to use a different uptime parsing method or is anyone having a
better idea?
In my experience, most programs default to A4 no matter your
locale.
I'm not sure how practical it would be for you to change all your wmii
scripts, but isn't there a script set for it written in rc instead of
bourne shell? Those would use the p9p or 9base commands which don't
respond to locale.
Ah, sadly not. p9p does not, unfortunately, provide any way of
obtaining load averages. It gets it from the system uptime
command the same as the sh script.
--
Kris Maglione
A language that doesn't have everything is actually easier to program
in than some that do.
--Dennis M. Ritchie