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?
Am 14.07.2010 17:44, schrieb 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 best.
>
>>
>> uriel
>>
>> On Wed, Jul 14, 2010 at 2:08 PM, nico <nico_AT_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
>>> looks
>>> like "131 087 071" (no dots since commas are removed by sed).
>>> I have tried several things to make it work but I was not sucessful.
>>> LC_NUMERIC _must_ be exported to make it work correctly, since
>>> uptime is
>>> called from a subshell. Exporting LC_NUMERIC to an English locale is
>>> not an
>>> option.
>>>
>>> Now, I don't know how to make that status command respecting a
>>> different
>>> locale.
>>> Changing the sed command to something more complex would surely work
>>> but I
>>> am posting this here since this was no issue with wmii 3.6 yonks ago
>>> and
>>> maybe other people run into this too. Any suggestions how to handle
>>> this?
>>>
>>> Secondly, a small suggestion:
>>> I would like to have something like a small indication if there are any
>>> floating windows hidden "behind" the managed layer if the latter is
>>> toggled
>>> active (currently there is none and it's quite possible to forget
>>> about the
>>> floating windows ;) Maybe a "~" in the tags name like the "*" if a
>>> window
>>> is requesting attention. Don't know if this is possible but I hope
>>> you get
>>> what I mean.
>>>
>>> regards,
>>> nico
>>>
>>>
>>
>
>
-- regards, nicoReceived on Wed Jul 14 2010 - 19:56:23 CEST
This archive was generated by hypermail 2.2.0 : Wed Jul 14 2010 - 20:00:03 CEST