Package: ikiwiki
Version: 2.11
Severity: normal
Tags: patch

This interesting problem occurred recently, I update my machine daily
so it has probably happened the last week or so.

My input files (in subversion) are all encoded in UTF-8 and
this has worked well before. But now I got typical UTF-8 characters
in the generated files, like they where converted to UTF-8 twice.

This happens also with ikiwiki 2.9 and 2.10 so I suspect that something
else has changed in the distribution.

Anyway, a UTF-8 character that normally encodes to two byte where
now encoded in four byte, and when viewed, looked like the
two UTF-8 bytes that normally represents the character when
viewed in a ISO-8859-1 environment. (Which this is not. :-)

So, after grepping for utf8 in the Ikiwiki code I found these lines.
Commenting out two of them made ikiwiki work again.
I didn't notice any difference when I commented out all four of them,
that also worked.

Somehow I think this behaviour has been triggered somewhere else, since
it didn't help to downgrade.

Perhaps someone could enlighten me? :-)

My locales has en_US.UTF-8 included, that's also the systems default.
I've also LC_CTYPE=en_US.UTF-8 in my environment.


--- /tmp/mdwn.pm        2007-11-05 14:24:49.000000000 +0100
+++ /usr/share/perl5/IkiWiki/Plugin/mdwn.pm     2007-11-05 14:16:05.000000000 
+0100
@@ -43,9 +43,9 @@
        
        # Workaround for perl bug (#376329)
        $content=Encode::encode_utf8($content);
-       $content=Encode::encode_utf8($content);
+#      $content=Encode::encode_utf8($content);
        $content=&$markdown_sub($content);
-       $content=Encode::decode_utf8($content);
+#      $content=Encode::decode_utf8($content);
        $content=Encode::decode_utf8($content);
 
        return $content;

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ikiwiki depends on:
ii  gcc [c-compiler]           4:4.2.1-6     The GNU C compiler
ii  gcc-3.3 [c-compiler]       1:3.3.6-15    The GNU C compiler
ii  gcc-4.0 [c-compiler]       4.0.3-7       The GNU C compiler
ii  gcc-4.1 [c-compiler]       4.1.2-17      The GNU C compiler
ii  gcc-4.2 [c-compiler]       4.2.2-3       The GNU C compiler
ii  libc6-dev [libc-dev]       2.6.1-6       GNU C Library: Development Librari
ii  libcgi-formbuilder-perl    3.05.01-1     Easily generate and process statef
ii  libcgi-session-perl        4.20-2        Persistent session data in CGI app
ii  libhtml-parser-perl        3.56-1        A collection of modules that parse
ii  libhtml-scrubber-perl      0.08-4        Perl extension for scrubbing/sanit
ii  libhtml-template-perl      2.9-1         HTML::Template : A module for usin
ii  libmail-sendmail-perl      0.79-4        Send email from a perl script
ii  libtime-duration-perl      1.02-1        Time::Duration -- rounded or exact
ii  libtimedate-perl           1.1600-9      Time and date functions for Perl
ii  liburi-perl                1.35.dfsg.1-1 Manipulates and accesses URI strin
ii  libxml-simple-perl         2.18-1        Perl module for reading and writin
ii  markdown                   1.0.1-6       Text-to-HTML conversion tool
ii  perl                       5.8.8-11.1    Larry Wall's Practical Extraction 

Versions of packages ikiwiki recommends:
pn  hyperestraier               <none>       (no description available)
pn  libnet-openid-consumer-perl <none>       (no description available)
ii  subversion                  1.4.4dfsg1-1 Advanced version control system

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to