summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--login-utils/sulogin.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c
index 013045936..657bb6b44 100644
--- a/login-utils/sulogin.c
+++ b/login-utils/sulogin.c
@@ -164,7 +164,7 @@ check_des:
/*
* Set a variable if the value is not NULL.
*/
-static void set(char **var, char *val)
+static inline void set(char **var, char *val)
{
if (val)
*var = val;
@@ -439,6 +439,10 @@ int main(int argc, char **argv)
{ NULL, 0, 0, 0 }
};
+ setlocale(LC_ALL, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
+
/*
* See if we have a timeout flag.
*/