]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sulogin: initialize nls stuff
authorKarel Zak <kzak@redhat.com>
Mon, 12 Mar 2012 11:36:39 +0000 (12:36 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 12 Mar 2012 11:36:39 +0000 (12:36 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/sulogin.c

index 01304593600595f8c819e41d709a1817c88d75f7..657bb6b443c43e98cd7fbf682f1f03c19ddef409 100644 (file)
@@ -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.
         */