Issue #6799 has been updated by Eregon (Benoit Daloze).

File 0001-ext-digest-digest.c-hexencode_str_new-return-an-ASCI.patch added

Patch attached.
----------------------------------------
Bug #6799: Digest::*.hexdigest returns an ASCII-8BIT String
https://bugs.ruby-lang.org/issues/6799#change-28485

Author: Eregon (Benoit Daloze)
Status: Feedback
Priority: Normal
Assignee: 
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'     
#<Encoding:ASCII-8BIT>

I'm happy to provide a patch.


-- 
http://bugs.ruby-lang.org/