Skip Menu |

This queue is for tickets about the HTML-TagCloud CPAN distribution.

Report information
The Basics
Id: 22712
Status: open
Priority: 0/
Queue: HTML-TagCloud

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.33
Fixed in: (no value)



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,
From: kai.carver [...] gmail.com
On Tue Oct 31 17:11:01 2006, FALCONE wrote: Show quoted text
> 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
Yes, I noticed this too. A fix is to put "use locale" at the top of TagCloud.pm. k a i