Subject: | Wide character in print ... |
Date: | Sun, 27 Jul 2008 16:11:49 -0400 |
To: | bug-Text-Markdown [...] rt.cpan.org |
From: | Okan Demirmen <okan [...] demirmen.com> |
hi!
while running the test suite with 1.0.21, i am now seeing these
warnings:
Wide character in print at /usr/obj/ports/amd64/p5-Text-Markdown-1.0.21/Text-Markdown-1.0.21/t/20fulldocs-text-multimarkdown.t line 26.
in t/24fulldocs-pythonmarkdown2-tm and t/29fulldocs-maruku-unittest
while the tests are in the "unexpected" category, the following patch is
but one way to "fix" the warnings. of course, there are others; and
admittedly, i'm not familiar with the test suite anyway.
cheers,
okan
--- t/20fulldocs-text-multimarkdown.t.orig Sun Jul 27 14:54:02 2008
+++ t/20fulldocs-text-multimarkdown.t Sun Jul 27 14:55:11 2008
@@ -4,6 +4,7 @@ use Test::More;
use FindBin qw($Bin);
use List::MoreUtils qw(uniq);
use File::Slurp qw(slurp);
+use Encode;
our $TIDY = 0;
@@ -23,7 +24,7 @@ if (!$@) {
return;
}
print "=" x 80 . "\nDIFFERENCES: + = processed version from .text, - = template from .html\n";
- print Text::Diff::diff(\$expected => \$got, { STYLE => "Unified" }) . "\n";
+ print encode("utf-8", Text::Diff::diff(\$expected => \$got, { STYLE => "Unified" }) . "\n");
fail($testname);
};
}