Item362: Wysiwyg utf8 unit tests fail
Priority: Urgent
Current State: Closed
Released In: 1.0.0
Target Release: patch
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