Package: linkchecker Version: 2.8-1 Severity: minor Tags: patch linkchecker doesn't properly cope with UTF-8 locales. The copyright symbol isn't rendered properly because linkchecker assumes iso-8859-15 if no encoding is specified. I think that linkchecker should just take the encoding from the current locale if no specific encoding is given. Here's a patch which seems to work (at least the initial copyright message looks good now). You might also have to change the default in linkcheck.strformat.unicode_safe().
diff -urN linkchecker-2.9~/doc/en/linkchecker.1 linkchecker-2.9/doc/en/linkchecker.1 --- linkchecker-2.9~/doc/en/linkchecker.1 2005-05-05 17:22:26.755466933 +0100 +++ linkchecker-2.9/doc/en/linkchecker.1 2005-05-05 17:25:35.524905883 +0100 @@ -111,8 +111,8 @@ \fBcsv\fP, \fBgml\fP, \fBdot\fP, \fBxml\fP, \fBnone\fP or \fBblacklist\fP. Default type is \fBtext\fP. The various output types are documented below. -\fIencoding\fP specifies the output encoding, the default is -\fBiso\-8859\-15\fP. +\fIencoding\fP specifies the output encoding, the default is that of +your locale. Valid encodings are listed at \fBhttp://docs.python.org/lib/node127.html\fP. .TP diff -urN linkchecker-2.9~/linkcheck/logger/__init__.py linkchecker-2.9/linkcheck/logger/__init__.py --- linkchecker-2.9~/linkcheck/logger/__init__.py 2005-05-05 17:22:26.802468537 +0100 +++ linkchecker-2.9/linkcheck/logger/__init__.py 2005-05-05 17:23:23.367398151 +0100 @@ -18,6 +18,7 @@ Output logging support for different formats. """ +import locale import sys import os import os.path @@ -65,7 +66,7 @@ # number of encountered errors self.errors = 0 # encoding of output - self.output_encoding = args.get("encoding", "iso-8859-1") + self.output_encoding = args.get("encoding", locale.getpreferredencoding()) def init_fileoutput (self, args): """ -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: powerpc (ppc) Kernel: Linux 2.6.8-powerpc Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages linkchecker depends on: ii python 2.3.4-5 An interactive high-level object-o ii python2.4 2.4.1-1 An interactive high-level object-o -- no debconf information -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]