Re: [dev] [wmii] Locale problem with uptime (loadavg in status bar) and a suggestion

2010-07-15 Thread Robert Ransom
On Wed, 14 Jul 2010 14:08:32 +0200 nico n...@lifeisabug.com wrote: Hello there, i changed my systems locales to de_DE.UTF-8 and now the command uptime is using , instead of . because of LC_NUMERIC now being set to German too. As a result of this the loadavg part of the default statusbar

Re: [dev] [wmii] Locale problem with uptime (loadavg in status bar) and a suggestion

2010-07-15 Thread Kris Maglione
On Thu, Jul 15, 2010 at 12:00:51AM -0700, Robert Ransom wrote: On Linux 2.6.34.1 (and many other versions): $ cat /proc/loadavg What do you mean “many other versions”? /proc/loadavg is purely Linux. Most other Unices use /proc for, well, processes. (I assume the kernel doesn't try to read

Re: [dev] [wmii] Locale problem with uptime (loadavg in status bar) and a suggestion

2010-07-15 Thread Robert Ransom
On Thu, 15 Jul 2010 03:57:08 -0400 Kris Maglione maglion...@gmail.com wrote: On Thu, Jul 15, 2010 at 12:00:51AM -0700, Robert Ransom wrote: On Linux 2.6.34.1 (and many other versions): $ cat /proc/loadavg What do you mean “many other versions”? /proc/loadavg is purely Linux. Most other

Re: [dev] [wmii] Locale problem with uptime (loadavg in status bar) and a suggestion

2010-07-15 Thread Suraj Kurapati
On Wed, Jul 14, 2010 at 5:08 AM, nico n...@lifeisabug.com wrote: i changed my systems locales to de_DE.UTF-8 and now the command uptime is using , instead of . because of LC_NUMERIC now being set to German too. As a result of this the loadavg part of the default statusbar looks like 131 087

[dev] [wmii] Locale problem with uptime (loadavg in status bar) and a suggestion

2010-07-14 Thread nico
Hello there, i changed my systems locales to de_DE.UTF-8 and now the command uptime is using , instead of . because of LC_NUMERIC now being set to German too. As a result of this the loadavg part of the default statusbar looks like 131 087 071 (no dots since commas are removed by sed). I have

Re: [dev] [wmii] Locale problem with uptime (loadavg in status bar) and a suggestion

2010-07-14 Thread Uriel
If you set locales to retarded values (anything other than C/UTF-8/en_US), shit will break. Stop this crap, locales are an abomination. uriel On Wed, Jul 14, 2010 at 2:08 PM, nico n...@lifeisabug.com wrote: Hello there, i changed my systems locales to de_DE.UTF-8 and now the command uptime

Re: [dev] [wmii] Locale problem with uptime (loadavg in status bar) and a suggestion

2010-07-14 Thread Ethan Grammatikidis
On 14 Jul 2010, at 13:31, Uriel wrote: If you set locales to retarded values (anything other than C/UTF-8/en_US), shit will break. Stop this crap, locales are an abomination. *nods* The output of unix commands is just as much API as UI, so applying locale conversions to them is hairy at

Re: [dev] [wmii] Locale problem with uptime (loadavg in status bar) and a suggestion

2010-07-14 Thread nico
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

Re: [dev] [wmii] Locale problem with uptime (loadavg in status bar) and a suggestion

2010-07-14 Thread Ethan Grammatikidis
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,

Re: [dev] [wmii] Locale problem with uptime (loadavg in status bar) and a suggestion

2010-07-14 Thread Uriel
On Wed, Jul 14, 2010 at 7:56 PM, nico n...@lifeisabug.com 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

Re: [dev] [wmii] Locale problem with uptime (loadavg in status bar) and a suggestion

2010-07-14 Thread Troels Henriksen
Uriel ur...@berlinblue.org writes: On Wed, Jul 14, 2010 at 7:56 PM, nico n...@lifeisabug.com 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

Re: [dev] [wmii] Locale problem with uptime (loadavg in status bar) and a suggestion

2010-07-14 Thread Kris Maglione
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

Re: [dev] [wmii] Locale problem with uptime (loadavg in status bar) and a suggestion

2010-07-14 Thread Kris Maglione
On Wed, Jul 14, 2010 at 11:39:59PM +0200, Troels Henriksen wrote: Uriel ur...@berlinblue.org writes: Again, stop trying to 'use' the PoSix locale system for anything, it is completely broken and totally antithetical to how Unix is designed to work. An option would be to use p9p's user space

Re: [dev] [wmii] Locale problem with uptime (loadavg in status bar) and a suggestion

2010-07-14 Thread Noah Birnel
On Wed, Jul 14, 2010 at 02:08:32PM +0200, nico wrote: Changing the sed command to something more complex would surely work ...and not generate all this noise. noah