Item359: Wysiwyg utf_8 unit tests fail if perl Encode module is too old(?)

pencil
Priority: Low
Current State: No Action Required
Released In:
Target Release:
Applies To: Engine
Component: WysiwygPlugin
Branches:
Reported By: Foswiki:Main.EliotBlennerhassett
Waiting For: KennethLavrsen
Last Change By: EliotBlennerhassett
My system (Ubuntu 8.04) had Encode::Encoding version 2.02 installed.

In this state, get errors like this for 4 tests
WysiwygPluginTests::test_save_utf_8d
Cannot decode string with wide characters at /usr/lib/perl/5.8/Encode.pm line 166.

I upgraded Encode::Encoding using CPAN (to version 2.26). Now I don't get the errors.

So somewhere between the 2 versions mentioned above, is the first version that doesn't fail the unit tests.

-- Foswiki:Main.EliotBlennerhassett

I cannot see how we can resolve this.

An older version of Encode had a bug. A bug that probably also affects normal use once you really start using UTF8 in e.g. Chinese.

The only things the person installing do is upgrade the Encode to the recommended version

-- KennethLavrsen - 17 Dec 2008

In the CGI Setup section of configure is it possible to have a warning on the module in the Perl modules section, either triggered by version, or by a runtime test?

-- EliotBlennerhassett - 18 Dec 2008

ItemTemplate edit

Summary Wysiwyg utf_8 unit tests fail if perl Encode module is too old(?)
ReportedBy Foswiki:Main.EliotBlennerhassett
Codebase
SVN Range 1111
AppliesTo Engine
Component WysiwygPlugin
Priority Low
CurrentState No Action Required
WaitingFor KennethLavrsen
Checkins
ReleasedIn
Topic revision: r3 - 18 Dec 2008, EliotBlennerhassett
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy