]> granicus.if.org Git - cracklib/commitdiff
enable gettext support (patch from Debian)
authorJan Dittberner <jan@dittberner.info>
Fri, 7 Nov 2008 18:13:32 +0000 (18:13 +0000)
committerJan Dittberner <jan@dittberner.info>
Fri, 7 Nov 2008 18:13:32 +0000 (18:13 +0000)
git-svn-id: file:///tmp/cracklib-svn/trunk@121 4175fe1e-86d5-4fdc-8e6a-506fab9d8533

cracklib/util/check.c

index c7fb992fcaa6ce61b47c1549060c4b47dfb4338a..f7e2030886255b21ec60cf22ec594c4753d0ff57 100644 (file)
@@ -20,6 +20,9 @@ main(int argc, char **argv)
        const char *why;
        int i;
 
+       setlocale(LC_ALL, "");
+       textdomain(PACKAGE);
+
        while (fgets(buf, sizeof(buf), stdin) != NULL) {
                while (((i = strlen(buf)) > 0) && (i > 0)) {
                        if (strchr("\r\n", buf[i - 1]) != NULL) {