Skip Menu |

This queue is for tickets about the Time-Duration-es CPAN distribution.

Report information
The Basics
Id: 121112
Status: open
Priority: 0/
Queue: Time-Duration-es

People
Owner: Nobody in particular
Requestors: user42_kevin [...] yahoo.com.au
Cc:
AdminCc:

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



Subject: suggest wide chars
Date: Fri, 14 Apr 2017 13:49:03 +1000
To: bug-Time-Duration-es [...] rt.cpan.org
From: Kevin Ryde <user42_kevin [...] yahoo.com.au>
It seems Time::Duration::es::duration() gives byte strings of utf8. use Time::Duration::es; my $str = Time::Duration::es::duration(100000); print "$str\n"; print utf8::is_utf8($str) ? "wide\n" : "bytes\n"; => "bytes" It could be desirable to give perl wide chars ready for character manipulation, or output in a different encoding. That might be as easy as "use utf8" at the start of the source (if you're happy to be perl 5.8 up or some such new enough version).
Half of Time::Duration::* use bytes and the other half use wide chars. Currently I'm using T::D::es with Time::Duration::Locale. Let me check if it breaks "my system". :-)
Subject: Re: [rt.cpan.org #121112] suggest wide chars
Date: Fri, 28 Apr 2017 16:28:20 +1000
To: "Biafra via RT" <bug-Time-Duration-es [...] rt.cpan.org>
From: Kevin Ryde <user42_kevin [...] yahoo.com.au>
"Biafra via RT" <bug-Time-Duration-es@rt.cpan.org> writes: Show quoted text
> > Half of Time::Duration::* use bytes and the other half use wide chars.
Alas, yes. If you want bytes then it could be latin1, as I thought that was the auto-upgrade in perl, somewhere, but not quite certain.