Clint Adams, le Sun 24 Dec 2006 09:23:44 -0500, a écrit :
> > Having lines
> > charset_default=utf-8
> > unicode=yes
>
> Isn't unicode=yes already the default?
Nope, iso-8859-1 is (see configure.ac). But it could be by applying the
attached patch (yes, I had to fix the configure.ac script).
But actually, text tools should rather use the current locale's charset
(from nl_langinfo(CODESET)), instead of hardcoding it in configuration
files...
Samuel
diff -ur bogofilter-1.1.3/configure bogofilter-1.1.3-mine/configure
--- bogofilter-1.1.3/configure 2006-12-03 05:17:15.000000000 +0100
+++ bogofilter-1.1.3-mine/configure 2006-12-27 01:06:32.000000000 +0100
@@ -6137,6 +6137,7 @@
#define DEFAULT_CHARSET "$withval"
_ACEOF
+ DEFAULT_CHARSET="$withval"
fi
diff -ur bogofilter-1.1.3/configure.ac bogofilter-1.1.3-mine/configure.ac
--- bogofilter-1.1.3/configure.ac 2006-12-03 04:55:30.000000000 +0100
+++ bogofilter-1.1.3-mine/configure.ac 2006-12-27 01:05:28.000000000 +0100
@@ -336,6 +336,7 @@
AC_DEFINE_UNQUOTED(DEFAULT_CHARSET,
["$withval"],
[Use specified default charset instead of iso-8859-1])
+ [DEFAULT_CHARSET="$withval"]
)
AC_SUBST(ENCODING)
Seulement dans bogofilter-1.1.3-mine: configure-stamp
diff -ur bogofilter-1.1.3/debian/rules bogofilter-1.1.3-mine/debian/rules
--- bogofilter-1.1.3/debian/rules 2006-12-27 01:05:50.000000000 +0100
+++ bogofilter-1.1.3-mine/debian/rules 2006-12-27 01:09:19.000000000 +0100
@@ -26,11 +26,11 @@
$(INSTALL) -d obj-db obj-qdbm obj-sqlite
- cd obj-db && CFLAGS="$(CFLAGS)" ../configure --with-database=db \
+ cd obj-db && CFLAGS="$(CFLAGS)" ../configure --with-database=db
--with-charset=utf-8 \
--prefix=/usr --mandir=\$${prefix}/share/man --sysconfdir=/etc
- cd obj-qdbm && CPPFLAGS="-I/usr/include/qdbm" CFLAGS="$(CFLAGS)"
../configure --with-database=qdbm --program-suffix=-qdbm \
+ cd obj-qdbm && CPPFLAGS="-I/usr/include/qdbm" CFLAGS="$(CFLAGS)"
../configure --with-database=qdbm --program-suffix=-qdbm --with-charset=utf-8 \
--prefix=/usr --mandir=\$${prefix}/share/man --sysconfdir=/etc
- cd obj-sqlite && CFLAGS="$(CFLAGS)" ../configure --with-database=sqlite
--program-suffix=-sqlite \
+ cd obj-sqlite && CFLAGS="$(CFLAGS)" ../configure --with-database=sqlite
--program-suffix=-sqlite --with-charset=utf-8 \
--prefix=/usr --mandir=\$${prefix}/share/man --sysconfdir=/etc
&& \
sed -i 's/^INTEGRITY_TESTS.*/INTEGRITY_TESTS=t.lock1/'
src/tests/Makefile
Seulement dans bogofilter-1.1.3-mine: obj-db
Seulement dans bogofilter-1.1.3-mine: obj-qdbm
Seulement dans bogofilter-1.1.3-mine: obj-sqlite