Package: cracklib-runtime
Version: 2.8.13-1
Severity: minor


Coin,

Even if Cracklib is using gettext, i was unable to get translated messages using cracklib-check. I'm not a gettext expert, but i made the following small patch and translation is now working like a charm. Maybe translations for the other commands would be of interrest too.

Regards.

--
Marc Dequènes
Homepage: http://www.proformatique.com/
Proformatique - 67 rue Voltaire - 92800 Puteaux
Tel. : 01 41 38 99 64 - Fax. : 01 41 38 99 70
Index: cracklib2-2.8.13/util/check.c
===================================================================
--- cracklib2-2.8.13.orig/util/check.c  2008-10-28 12:36:56.000000000 +0100
+++ cracklib2-2.8.13/util/check.c       2008-10-28 12:37:03.000000000 +0100
@@ -20,6 +20,9 @@
        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) {

Attachment: pgpQ5n3f8KTYq.pgp
Description: PGP Digital Signature

Reply via email to