From: "duerst (Martin Dürst)" Date: 2012-07-30T15:06:57+09:00 Subject: [ruby-core:46871] [ruby-trunk - Bug #6799][Assigned] Digest::*.hexdigest returns an ASCII-8BIT String Issue #6799 has been updated by duerst (Martin D��rst). Status changed from Feedback to Assigned Assignee set to Eregon (Benoit Daloze) 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. ---------------------------------------- Bug #6799: Digest::*.hexdigest returns an ASCII-8BIT String https://bugs.ruby-lang.org/issues/6799#change-28547 Author: Eregon (Benoit Daloze) Status: Assigned 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/