jerluc / wmii

Automatically exported from code.google.com/p/wmii
MIT License
0 stars 0 forks source link

[fix] improved sed command in status() to be compatible with non-English locales #208

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Different locale settings (if "," instead of "." is used in numbers) make the 
uptime part in the default status bar ugly (missing commas). 
http://lists.suckless.org/dev/1007/5118.html is related.

In status() replace the
$(uptime | sed 's/.*://; s/,//g')
by
$(uptime | sed 's/.*://; s/, / /g')

and it will work with most LC_NUMERIC settings.

Original issue reported on code.google.com by n...@core.ws on 14 Jul 2010 at 7:37

GoogleCodeExporter commented 9 years ago

Original comment by sun...@gmail.com on 22 Feb 2011 at 9:22