Beware Perl Encode.pm v2.25 when updating TWiki 4.2.2 or WysiwygPlugin

I just ran across a pretty annoying issue when updating one of my TWiki’s from 4.2.0 to 4.2.2. The server it is on was running Perl 5.10, but the Encode module was 2.25, resulting in Wysiwyg edits having all their spaces replaced with %20, and line feeds %0A ala

%20Debian%20equivalent%20of%20chkconfig%0A%0A/usr/sbin/update-rc.d%20avahi-daemon%20defaults%0A%0Ahttp%3A//wiki.linuxmce.org/index.php/Hardware%0A

(look familiar Martin? :))


perl -MCPAN -e shell

upgrade Encode

Got me to Encode v2.26, which fixed it for me.

update: Martin’s just confirmed that it didn’t help him on perl 5.8.4, so perhaps its an odd combination of outdated modules?

Author: Sven Dowideit

You might remember me from tools like http://TWiki.org, http://Foswiki.org, https://github.com/docker/Boot2Docker, Docker documentation, or https://github.com/rancher/os

3 thoughts on “Beware Perl Encode.pm v2.25 when updating TWiki 4.2.2 or WysiwygPlugin”

  1. So, as you know, I have this issue.

    Running Perl 5.8.4 + Encode 2.2.6 (latest) + CGI 3.4.0 (latest) still doesn’t fix it.

    Attempting to update to 5.8.10 would bring in 174 packages.

    Here’s my config:

    B::Deparse

    0.66 installed
    Desc: for base TWiki
    CGI

    3.40 installed
    Desc: for base TWiki (Versions 2.89 and 3.37 must be avoided. Most version from 3.15 and onwards should work.)
    Carp

    1.02 installed
    Desc: for base TWiki
    Config

    Unknown version installed
    Desc: for base TWiki
    Cwd

    2.17 installed
    Desc: for base TWiki
    Data::Dumper

    2.121 installed
    Desc: for base TWiki
    Error

    0.15 installed
    Desc: for base TWiki
    Exporter

    5.58 installed
    Desc: for base TWiki
    FileHandle

    2.01 installed
    Desc: for base TWiki
    File::Basename

    2.72 installed
    Desc: for base TWiki
    File::Glob

    1.02 installed
    Desc: for base TWiki
    File::Path

    1.06 installed
    Desc: for base TWiki
    File::Spec

    0.87 installed
    Desc: for base TWiki
    File::Temp

    0.14 installed
    Desc: for base TWiki
    FindBin

    1.44 installed
    Desc: required if you want to use the Extensions Installer in configure
    MIME::Base64

    3.04 installed
    Desc: for base TWiki
    POSIX

    1.08 installed
    Desc: for base TWiki
    Socket

    1.77 installed
    Desc: for base TWiki
    Archive::Tar

    Not installed. may be required by the Extensions Installer in configure if command line tar or unzip is not available
    CGI::Cookie

    1.29 installed
    Desc: required for Sessions support, available from the CPAN archive.
    CGI::Session

    3.95 installed
    Desc: required for Sessions support, available from the CPAN archive.
    Locale::Maketext::Lexicon

    0.49 installed
    Desc: may be required for international characters
    Net::SMTP

    2.26 installed. Version 2.29 optional may be required for sending mail
    Apache::Htpasswd

    Not installed. may be required for ApacheHtpasswd password manager
    Digest::MD5

    2.33 installed
    Desc: may be required for password encryption
    Digest::SHA1

    2.10 installed
    Desc: may be required for password encryption
    Encode

    2.26 installed
    Desc: may be required for international characters
    Encode::compat

    Not installed. may be required for international characters
    Getopt::Long

    2.34 installed
    Desc: may be required for international characters
    I18N::Langinfo

    0.02 installed
    Desc: may be required for international characters
    Lingua::EN::Sentence

    Not installed. may be required for generating new language files
    Symbol

    1.05 installed
    Desc: may be required for international characters
    Unicode::MapUTF8

    Not installed. may be required for international characters
    Win32::Console

    Not installed. may be required for Windows
    PATH_INFO

    Regards,
    Martin Cleaver

  2. Oh, I also had this problem.
    But for me, all I had to do was clear my browser’s cache and then reload the edit page.
    From memory I held ctrl while clicking the refresh button or force a fetch of new content.

  3. Hey, you might well be right! The problem doesn’t seem to exhibit itself any longer.

    Thanks Jim!

Leave a Reply