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 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 071" (no do

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 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 Unices use

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 Wed, 14 Jul 2010 14:08:32 +0200 nico 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 looks > like

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 09:36:07PM -0700, Noah Birnel wrote: 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. Ah, but we're a very noisy list. You can't half throw a stone without g

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

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 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 instead of the usual GN

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 s

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

2010-07-14 Thread Troels Henriksen
Uriel writes: > On Wed, Jul 14, 2010 at 7:56 PM, 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 >> l

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 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, curren

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, punc

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 for

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 be

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 wrote: > Hello there, > > i changed my systems locales to de_DE.UTF-8 and now the command "uptime" > is using "," i

[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 h