From: "Eregon (Benoit Daloze)" Date: 2012-08-01T22:45:39+09:00 Subject: [ruby-core:46914] [ruby-trunk - Bug #6799] Digest::*.hexdigest returns an ASCII-8BIT String Issue #6799 has been updated by Eregon (Benoit Daloze). duerst (Martin D��rst) wrote: > Given that the string has only ASCII characters, an encoding of US-ASCII indeed seems best. Benoit, unless somebody objects soon, I think you should go ahead with your patch. Thank you, I just did. ---------------------------------------- Bug #6799: Digest::*.hexdigest returns an ASCII-8BIT String https://bugs.ruby-lang.org/issues/6799#change-28580 Author: Eregon (Benoit Daloze) Status: Closed Priority: Normal Assignee: Eregon (Benoit Daloze) Category: ext Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-07-15 trunk 36395) [x86_64-darwin10.8.0] $ ruby -rdigest/sha1 -e 'p Digest::SHA1.hexdigest("a").encoding' # I'm happy to provide a patch. -- http://bugs.ruby-lang.org/