Subject: | Sorting on !ascii tags |
We have users specifying tags with accented first characters, causing
them to show up at the end of the tag list (ascii sort order).
I've attached a failing test, but couldn't think of a good way to fiddle
the sort on TagCloud.pm:65 to handle this.
we're seeing this on a linux box and os-x using 5.8.8
Subject: | HTML-TagCloud-failingtest.diff |
Only in HTML-TagCloud-0.33/t: .simple.t.swp
diff -ur HTML-TagCloud-0.33.orig/t/simple.t HTML-TagCloud-0.33/t/simple.t
--- HTML-TagCloud-0.33.orig/t/simple.t 2006-03-13 15:32:50.000000000 -0500
+++ HTML-TagCloud-0.33/t/simple.t 2006-10-31 16:48:02.000000000 -0500
@@ -60,6 +60,14 @@
<span class="tagcloud3"><a href="c.html">c</a></span>
</div>});
+$cloud = HTML::TagCloud->new;
+$cloud->add('ecute',"1.html",10);
+$cloud->add('Ãcute',"2.html",10);
+$cloud->add('flower',"4.html",10);
+$cloud->add('egg',"3.html",10);
+my @tags = $cloud->tags;
+is($tags[1]->{name},'Ãcute',"Sort 8bit properly");
+
sub tags {
return {
'laptop' => 11,