You are here: Foswiki>Tasks Web>Item362 (18 Mar 2009, WillNorris)Edit Attach

Item362: Wysiwyg utf8 unit tests fail

pencil
Priority: Urgent
Current State: Closed
Released In: 1.0.0
Target Release: patch
Applies To: Extension
Component: UnitTestContrib
Branches:
Reported By: Foswiki:Main.KennethLavrsen
Waiting For: WillNorris
Last Change By: WillNorris
When I run the Wysiwyg unit tests I get

4 failures
WysiwygPluginTests::test_save_utf_8d
Cannot decode string with wide characters at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Encode.pm line 166.

---------------------------
WysiwygPluginTests::test_save_utf_8a
Cannot decode string with wide characters at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Encode.pm line 166.

---------------------------
WysiwygPluginTests::test_save_utf_8e
Cannot decode string with wide characters at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Encode.pm line 166.

---------------------------
WysiwygPluginTests::test_save_utf_8b
Cannot decode string with wide characters at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Encode.pm line 166.

Why do I have these and am I the only one?

No-one else has reported them. Do you still have them? What encoding are you using?

Regraded to Urgent because this sounds like a problem reported by normal people but never reproduced by a dev before.

This looks like a dup of my Item359. Solved by updating Encode module from CPAN. ?somehow need to check version. Not sure if it just affects the unit test, or the running wiki as well?

I am using standard encoding.

Still have the problem.

Kenneth, I'm sure you will understand when I say I need more information than that.
  • perl -e 'use Encode; print "$Encode::VERSION\n"'
  • Encoding and locale settings from LocalSite.cfg
TIA, -- CrawfordCurrie - 04 Dec 2008

Sure.

perl -e 'use Encode; print "$Encode::VERSION\n"' returns 2.12

The locale settings are "out of the box".

I have simply not touched anything in the pseudo-install other than the initial path, the webmaster email and I run ApacheLogin instead of Template. Rest is 100% default.

OK, I'm pretty sure that's one of the broken versions of Encode. Try using CPAN to update it before running the tests again.

-- CrawfordCurrie - 08 Dec 2008

Confirmed that Encode 2.26 removes the unit test failure.

Question is if this is only seen in unit tests or it affects normal operation. If so then we should reflect it in DEPENDENCIES.

But then we should try and get closer to which version. I doubt any of us have time to install this CPAN lib many times to find this and I would hate to generate noise in configure for something that may be a thing we only see in unit tests.

So No Action for now.

Encode 2.12 is indeed broken out of the box, and it fails the test suite.

The test suite should be updated to demand a later version requirement, e.g. 2.32

-- MartinCleaver - 17 Mar 2009

updated lib/Foswiki/Contrib/UnitTestContrib/DEPENDENCIES with
+Encode,>=2.32,cpan,required, other versions may work, but 2.12 is known bad

-- WillNorris - 18 Mar 2009

ItemTemplate edit

Summary Wysiwyg utf8 unit tests fail
ReportedBy Foswiki:Main.KennethLavrsen
Codebase
SVN Range TWiki-4.2.3, Wed, 06 Aug 2008, build 17396
AppliesTo Extension
Component UnitTestContrib
Priority Urgent
CurrentState Closed
WaitingFor WillNorris
Checkins distro:7403f6b2b6f6 distro:9834184ba853
TargetRelease patch
ReleasedIn 1.0.0
Topic revision: r12 - 18 Mar 2009, WillNorris
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