aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-07-31 21:56:17 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2017-07-31 20:03:17 -0700
commit4e05ca524fd75bccbb87d790f10118c650320cda (patch)
treef20f8bbe92da512c7bef0a27d9c196603116aab8
parent2a941e0913db40c8abc10ae2c088477d250b126c (diff)
Call setlocale() to clear the default "C" locale for CLI
Fixes strings not being translated in the CLI. Signed-off-by: Burt P <pburt0@gmail.com>
-rw-r--r--hardinfo/hardinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hardinfo/hardinfo.c b/hardinfo/hardinfo.c
index 72abfde6..8c19150c 100644
--- a/hardinfo/hardinfo.c
+++ b/hardinfo/hardinfo.c
@@ -33,6 +33,7 @@ int main(int argc, char **argv)
{
GSList *modules;
+ setlocale(LC_ALL, "");
bindtextdomain("hardinfo", LOCALEDIR);
textdomain("hardinfo");