aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2
diff options
context:
space:
mode:
authorAndrey Esin <gmlastik@gmail.com>2009-08-27 04:53:40 +0800
committerLeandro A. F. Pereira <leandro@hardinfo.org>2010-01-03 07:16:00 +0800
commit679cf487bceb54949f7fe51523f54b5962a7466f (patch)
tree9aee9714894af2d26c1de7791b47eea4a92a5ee9 /hardinfo2
parent6ce21cec4f4357b90cc486c6eaf3362681e1713e (diff)
A little hack with "&& echo".
Hardinfo doesn't show last locale with 'locale -av', becase in FILE *locale last line doesn't empty. TODO: rewrite scan_languages without hack.
Diffstat (limited to 'hardinfo2')
-rw-r--r--hardinfo2/arch/common/languages.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hardinfo2/arch/common/languages.h b/hardinfo2/arch/common/languages.h
index c1839ee9..39e557fc 100644
--- a/hardinfo2/arch/common/languages.h
+++ b/hardinfo2/arch/common/languages.h
@@ -22,7 +22,7 @@ scan_languages(OperatingSystem * os)
FILE *locale;
gchar buf[512], *retval = NULL;
- locale = popen("locale -va", "r");
+ locale = popen("locale -va && echo", "r");
if (!locale)
return;