[Pkg-cracklib-commits] r115 - in cracklib2/trunk/debian: . patches
Jan Dittberner
jandd at alioth.debian.org
Sat Nov 21 21:51:52 UTC 2009
Author: jandd
Date: 2009-11-21 21:51:52 +0000 (Sat, 21 Nov 2009)
New Revision: 115
Added:
cracklib2/trunk/debian/patches/svn-r152-python-use-translations.patch
Modified:
cracklib2/trunk/debian/changelog
cracklib2/trunk/debian/patches/series
Log:
fix for #557390 (translations in Python binding)
Modified: cracklib2/trunk/debian/changelog
===================================================================
--- cracklib2/trunk/debian/changelog 2009-11-19 06:54:59 UTC (rev 114)
+++ cracklib2/trunk/debian/changelog 2009-11-21 21:51:52 UTC (rev 115)
@@ -1,3 +1,11 @@
+cracklib2 (2.8.15-2) unstable; urgency=low
+
+ * add debian/patches/svn-r152-python-use-translations.patch to use
+ cracklib translations in the Python binding (Closes: #557390) and
+ update debian/patches/series accordingly
+
+ -- Jan Dittberner <jandd at debian.org> Sat, 21 Nov 2009 22:20:26 +0100
+
cracklib2 (2.8.15-1) unstable; urgency=low
* New upstream release
Modified: cracklib2/trunk/debian/patches/series
===================================================================
--- cracklib2/trunk/debian/patches/series 2009-11-19 06:54:59 UTC (rev 114)
+++ cracklib2/trunk/debian/patches/series 2009-11-21 21:51:52 UTC (rev 115)
@@ -1 +1,2 @@
03-packer-dont-print-skipping-line.patch
+svn-r152-python-use-translations.patch
Added: cracklib2/trunk/debian/patches/svn-r152-python-use-translations.patch
===================================================================
--- cracklib2/trunk/debian/patches/svn-r152-python-use-translations.patch (rev 0)
+++ cracklib2/trunk/debian/patches/svn-r152-python-use-translations.patch 2009-11-21 21:51:52 UTC (rev 115)
@@ -0,0 +1,27 @@
+Author: Jan Dittberner <jan at dittberner.info>
+Description: use translations in Python extension
+ .
+ * python/_cracklibmodule.c:
+ - add calls to gettext functions to use cracklib's translations
+Bug-Debian: http://bugs.debian.org/557390
+--- a/python/_cracklibmodule.c
++++ b/python/_cracklibmodule.c
+@@ -32,6 +32,7 @@
+ #include <pthread.h>
+ #endif
+ #include <crack.h>
++#include <locale.h>
+
+ #ifdef HAVE_PTHREAD_H
+ static pthread_mutex_t cracklib_mutex = PTHREAD_MUTEX_INITIALIZER;
+@@ -131,6 +132,9 @@ _cracklib_FascistCheck(PyObject *self, PyObject *args, PyObject *kwargs)
+ free(dictfile);
+ }
+
++ setlocale(LC_ALL, "");
++ textdomain("cracklib");
++
+ LOCK();
+ result = FascistCheck(candidate, dict ? dict : defaultdict);
+ UNLOCK();
+
More information about the Pkg-cracklib-commits
mailing list