Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: md5_hex changes its argument

by Joost (Canon)
on Aug 15, 2007 at 10:14 UTC ( [id://632692]=note: print w/replies, xml ) Need Help??


in reply to md5_hex changes its argument

Arguably, md5_hex shouldn't work in utf-8 flagged strings at all, since it's supposed to work on binary data, while the same text can have different internal representations, with no readily visible effect in perl.

In any case, it shouldn't change the utf-8 flag. this has been reported in rt.cpan.org over a year ago.

Replies are listed 'Best First'.
Re^2: md5_hex changes its argument
by tinita (Parson) on Aug 15, 2007 at 10:20 UTC
    this has been reported in rt.cpan.org over a year ago
    oh thanks =)
    i should have been looking there myself.
    too bad though the bug doesn't seem to get solved.
      In the meantime you could use my $md5 = md5_hex("$string"); to work around the problem.
        you could use my $md5 = md5_hex("$string");
        yes, i'm doing this already.
      too bad though the bug doesn't seem to get solved.

      "Patches speak louder than words", as the saying goes...

      I have looked into the thing and made up a tentative patch:

      that seems to fix it. There are still problems with two failing tests. One of the fails can be fixed in a straightforward manner, the other one I haven't followed up yet.

      If you want the fix quickly you're invited to pick it up for submission at p5p. You can mail me through my berlin.pm address for more details if you want to. Otherwise I'll come back to it later, which may be much later.

      Anno

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://632692]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-26 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found