diff options
author | Karel Zak | 2012-03-12 12:36:39 +0100 |
---|---|---|
committer | Karel Zak | 2012-03-12 12:36:39 +0100 |
commit | 24ff2f575819190c022f8c6df6854d0587978e2e (patch) | |
tree | bab25c45e75b134dc55a783efedd5e26de9b2a91 | |
parent | sulogin: check chdir and getcwd return values [-Wunused-result] (diff) | |
download | kernel-qcow2-util-linux-24ff2f575819190c022f8c6df6854d0587978e2e.tar.gz kernel-qcow2-util-linux-24ff2f575819190c022f8c6df6854d0587978e2e.tar.xz kernel-qcow2-util-linux-24ff2f575819190c022f8c6df6854d0587978e2e.zip |
sulogin: initialize nls stuff
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | login-utils/sulogin.c | 6 |
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. */ |