Skip Menu |

This queue is for tickets about the Digest-MD5 CPAN distribution.

Report information
The Basics
Id: 17919
Status: rejected
Priority: 0/
Queue: Digest-MD5

People
Owner: Nobody in particular
Requestors: bphillips [...] cpan.org
Cc:
AdminCc:

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



Subject: clears utf-8 flag
The following test file illustrates the problem. Any scalar flagged as utf8 and then passed into the md5* functions loses the utf8 flag. use Test::More tests => 2; use Encode qw(is_utf8 _utf8_on); use Digest::MD5 qw(md5 md5_hex md5_base64); { my $str = "abcd"; _utf8_on($str); ok(is_utf8($str), 'utf8 flag set before md5'); my $md5 = md5($str); ok(is_utf8($str), 'utf8 flag set after md5'); }
I don't believe this is wrong.
From: cr2005 [...] u-club.de
Am Mi 12. Nov 2008, 04:54:26, GAAS schrieb: Show quoted text
> I don't believe this is wrong.
Hi! It is is wrong. I do believe the bug is in 'Digest', so I'm going to file a new bug report there.